From 5f1b6549180c82042cb0611f00a4da0e30ab9919 Mon Sep 17 00:00:00 2001 From: Christof Rabensteiner Date: Mon, 13 May 2019 09:21:15 +0200 Subject: Refactor: Make NullCoalesce Non-Instantiable --- src/main/java/at/gv/egiz/moazs/util/NullCoalesce.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main/java') diff --git a/src/main/java/at/gv/egiz/moazs/util/NullCoalesce.java b/src/main/java/at/gv/egiz/moazs/util/NullCoalesce.java index 4377140..36f39a9 100644 --- a/src/main/java/at/gv/egiz/moazs/util/NullCoalesce.java +++ b/src/main/java/at/gv/egiz/moazs/util/NullCoalesce.java @@ -9,7 +9,9 @@ import static java.util.Optional.ofNullable; * @author les2 * @source https://stackoverflow.com/questions/2768054/how-to-get-the-first-non-null-value-in-java */ -public class NullCoalesce { +public final class NullCoalesce { + + private NullCoalesce(){} /** * @return the first not-null value -- cgit v1.2.3