Add Empty.value()
[yangtools.git] / common / yang-common / src / main / java / org / opendaylight / yangtools / yang / common / Empty.java
index af85eb0547316cd378c488b635d6fed56fc47b5d..b5d09f62098a2c14301974b3d48f746030ae7e6c 100644 (file)
@@ -24,10 +24,26 @@ public final class Empty implements Immutable, Serializable {
     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() {
+        return value();
+    }
+
+    /**
+     * Return the singleton {@link Empty} value.
+     *
+     * @return Empty value.
+     */
+    public static Empty value()  {
         return INSTANCE;
     }