Use NodeIdentifier.create() in yang-data-util
[yangtools.git] / yang / yang-data-util / src / main / java / org / opendaylight / yangtools / yang / data / util / LeafContextNode.java
index 378d23525b80db91ba4f2e5a7f1227e01b39bc34..49f4eb1a519a193bccf6fa22c9de239efdd5d5fd 100644 (file)
@@ -13,7 +13,7 @@ import org.opendaylight.yangtools.yang.model.api.LeafSchemaNode;
 final class LeafContextNode extends AbstractLeafNodeContext<NodeIdentifier> {
 
     protected LeafContextNode(final LeafSchemaNode potential) {
-        super(new NodeIdentifier(potential.getQName()), potential);
+        super(NodeIdentifier.create(potential.getQName()), potential);
     }
 
-}
\ No newline at end of file
+}