Update NodeIdentifierWithPredicates construction
[netconf.git] / restconf / restconf-nb-bierman02 / src / main / java / org / opendaylight / netconf / sal / restconf / impl / RestCodec.java
index 6cf67830365ab096b51ff34bd61fe619432ab4c5..f3bea93690553812956982c8a83fa06fdd024dae 100644 (file)
@@ -288,7 +288,7 @@ public final class RestCodec {
                                             validNamespace);
                             predicatesMap.put(listKey.getQName(), predicate.getValue());
                         }
-                        pathArgument = new NodeIdentifierWithPredicates(qName, predicatesMap);
+                        pathArgument = NodeIdentifierWithPredicates.of(qName, predicatesMap);
                     } else {
                         LOG.info("Node {} is not List or Leaf-list.", node);
                         LOG.info("Instance-identifier will be translated as NULL for data - {}",