Fix deprecation warnings in restconf-nb
[netconf.git] / restconf / restconf-nb / src / main / java / org / opendaylight / restconf / nb / rfc8040 / handlers / SchemaContextHandler.java
index 2c684ac6a9506f30f62162b5f0ee7fb1afeec9be..27cdd0dbe3f35217b3783cdb96d6043197461e11 100644 (file)
@@ -141,7 +141,7 @@ public final class SchemaContextHandler implements EffectiveModelContextListener
     private void putData(final ContainerNode normNode) {
         final DOMDataTreeWriteTransaction wTx = domDataBroker.newWriteOnlyTransaction();
         wTx.put(LogicalDatastoreType.OPERATIONAL,
-                YangInstanceIdentifier.create(NodeIdentifier.create(normNode.getIdentifier().getNodeType())), normNode);
+                YangInstanceIdentifier.of(NodeIdentifier.create(normNode.name().getNodeType())), normNode);
         try {
             wTx.commit().get();
         } catch (InterruptedException e) {