diff options
author | Christof Rabensteiner <christof.rabensteiner@iaik.tugraz.at> | 2019-05-13 09:21:15 +0200 |
---|---|---|
committer | Christof Rabensteiner <christof.rabensteiner@iaik.tugraz.at> | 2019-05-13 09:21:15 +0200 |
commit | 5f1b6549180c82042cb0611f00a4da0e30ab9919 (patch) | |
tree | d2039bce9fda8eb3f939b7be9aa0b81f326c5e1d /src/main/java | |
parent | cffae5be804f0c27f81f68eb70ef851b793db124 (diff) | |
download | moa-zs-5f1b6549180c82042cb0611f00a4da0e30ab9919.tar.gz moa-zs-5f1b6549180c82042cb0611f00a4da0e30ab9919.tar.bz2 moa-zs-5f1b6549180c82042cb0611f00a4da0e30ab9919.zip |
Refactor: Make NullCoalesce Non-Instantiable
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/gv/egiz/moazs/util/NullCoalesce.java | 4 |
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 |