aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/gv/egiz/moazs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/gv/egiz/moazs')
-rw-r--r--src/main/java/at/gv/egiz/moazs/util/NullCoalesce.java4
1 files changed, 3 insertions, 1 deletions
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