Code Review
/
yangtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add Empty.value()
[yangtools.git]
/
common
/
yang-common
/
src
/
main
/
java
/
org
/
opendaylight
/
yangtools
/
yang
/
common
/
Empty.java
diff --git
a/common/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/Empty.java
b/common/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/Empty.java
index af85eb0547316cd378c488b635d6fed56fc47b5d..b5d09f62098a2c14301974b3d48f746030ae7e6c 100644
(file)
--- a/
common/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/Empty.java
+++ b/
common/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/Empty.java
@@
-24,10
+24,26
@@
public final class Empty implements Immutable, Serializable {
private static final Empty INSTANCE = new Empty();
private Empty() {
private static final Empty INSTANCE = new Empty();
private Empty() {
-
+ // Hidden on purpose
}
}
+ /**
+ * Return the singleton {@link Empty} value.
+ *
+ * @return Empty value.
+ * @deprecated Use {@link #value()} instead.
+ */
+ @Deprecated(since = "7.0.10", forRemoval = true)
public static Empty getInstance() {
public static Empty getInstance() {
+ return value();
+ }
+
+ /**
+ * Return the singleton {@link Empty} value.
+ *
+ * @return Empty value.
+ */
+ public static Empty value() {
return INSTANCE;
}
return INSTANCE;
}