Fix deprecation warnings in restconf-nb
[netconf.git] / restconf / restconf-nb / src / main / java / org / opendaylight / restconf / nb / rfc8040 / rests / transactions / BatchedExistenceCheck.java
index 7800c5e929d4ee492663975e62bb6d163e53f614..8bb7b240c0691a837f8452f10f8d52101223e9f0 100644 (file)
@@ -32,7 +32,7 @@ final class BatchedExistenceCheck {
     private volatile int outstanding;
 
     private BatchedExistenceCheck(final int total) {
-        this.outstanding = total;
+        outstanding = total;
     }
 
     static BatchedExistenceCheck start(final DOMDataTreeReadOperations tx,
@@ -40,7 +40,7 @@ final class BatchedExistenceCheck {
                                        final Collection<? extends NormalizedNode> children) {
         final BatchedExistenceCheck ret = new BatchedExistenceCheck(children.size());
         for (NormalizedNode child : children) {
-            final YangInstanceIdentifier path = parentPath.node(child.getIdentifier());
+            final YangInstanceIdentifier path = parentPath.node(child.name());
             tx.exists(datastore, path).addCallback(new FutureCallback<Boolean>() {
                 @Override
                 public void onSuccess(final Boolean result) {