Migrate to Empty.value()
[netconf.git] / netconf / sal-netconf-connector / src / main / java / org / opendaylight / netconf / sal / connect / netconf / util / NetconfBaseOps.java
index 38135fadd3256d0bf47562882c7f46525ced7826..6b6079767cf66a257c602b2a88ab0f94d0f7b440 100644 (file)
@@ -463,7 +463,7 @@ public final class NetconfBaseOps {
                 .withNodeIdentifier(NETCONF_SOURCE_NODEID)
                 .withChild(Builders.choiceBuilder()
                     .withNodeIdentifier(CONFIG_SOURCE_NODEID)
-                    .withChild(ImmutableNodes.leafNode(datastore, Empty.getInstance()))
+                    .withChild(ImmutableNodes.leafNode(datastore, Empty.value()))
                     .build())
                 .build();
     }
@@ -476,7 +476,7 @@ public final class NetconfBaseOps {
     public static @NonNull ContainerNode getTargetNode(final QName datastore) {
         return Builders.containerBuilder().withNodeIdentifier(NETCONF_TARGET_NODEID)
                 .withChild(Builders.choiceBuilder().withNodeIdentifier(CONFIG_TARGET_NODEID).withChild(
-                    Builders.leafBuilder().withNodeIdentifier(toId(datastore)).withValue(Empty.getInstance()).build())
+                    Builders.leafBuilder().withNodeIdentifier(toId(datastore)).withValue(Empty.value()).build())
                     .build()).build();
     }