Migrate from YangInstanceIdentifier.EMPTY
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / utils / PruningDataTreeModification.java
index 5f6ef15..3c326dc 100644 (file)
@@ -79,7 +79,7 @@ public class PruningDataTreeModification extends ForwardingObject implements Dat
     @Override
     public void merge(final YangInstanceIdentifier yangInstanceIdentifier, final NormalizedNode<?, ?> normalizedNode) {
         try {
-            if (YangInstanceIdentifier.EMPTY.equals(yangInstanceIdentifier)) {
+            if (YangInstanceIdentifier.empty().equals(yangInstanceIdentifier)) {
                 pruneAndMergeNode(yangInstanceIdentifier, normalizedNode);
             } else {
                 delegate.merge(yangInstanceIdentifier, normalizedNode);
@@ -105,7 +105,7 @@ public class PruningDataTreeModification extends ForwardingObject implements Dat
     @Override
     public void write(final YangInstanceIdentifier yangInstanceIdentifier, final NormalizedNode<?, ?> normalizedNode) {
         try {
-            if (YangInstanceIdentifier.EMPTY.equals(yangInstanceIdentifier)) {
+            if (YangInstanceIdentifier.empty().equals(yangInstanceIdentifier)) {
                 pruneAndWriteNode(yangInstanceIdentifier, normalizedNode);
             } else {
                 delegate.write(yangInstanceIdentifier, normalizedNode);

©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.