Eliminate reference to YangInstanceIdentifier.EMPTY 11/84711/3
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 25 Sep 2019 14:45:57 +0000 (16:45 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 25 Sep 2019 15:40:19 +0000 (17:40 +0200)
This constant has been removed, migrate to its replacement.

Change-Id: I0937b4602552ec8101132319889bc92e63de06cb
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/AbstractMagnesiumDataInput.java

index 2d02dd1..1ea8917 100644 (file)
@@ -379,7 +379,7 @@ abstract class AbstractMagnesiumDataInput extends AbstractNormalizedNodeDataInpu
             }
             return YangInstanceIdentifier.create(builder.build());
         } else if (size == 0) {
-            return YangInstanceIdentifier.EMPTY;
+            return YangInstanceIdentifier.empty();
         } else {
             throw new InvalidNormalizedNodeStreamException("Invalid YangInstanceIdentifier size " + size);
         }
@@ -781,7 +781,7 @@ abstract class AbstractMagnesiumDataInput extends AbstractNormalizedNodeDataInpu
             case MagnesiumValue.BINARY_4B:
                 return readBinary(input.readInt());
             case MagnesiumValue.YIID_0:
-                return YangInstanceIdentifier.EMPTY;
+                return YangInstanceIdentifier.empty();
             case MagnesiumValue.YIID:
                 return readYangInstanceIdentifier(input.readInt());
             case MagnesiumValue.QNAME:

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.