Rename DataSchemaContextNode to DataSchemaContext
[yangtools.git] / data / yang-data-tree-ri / src / main / java / org / opendaylight / yangtools / yang / data / tree / impl / AbstractDataTreeTip.java
index 9bf4f65f55e2ee9e6528a05441f2770285c6e82e..4628e94d378f871f200540f647b9f43876747ff9 100644 (file)
@@ -47,12 +47,12 @@ abstract class AbstractDataTreeTip implements DataTreeTip {
 
         final TreeNode currentRoot = getTipRoot();
         if (root.getOperation() == LogicalOperation.NONE) {
-            return new NoopDataTreeCandidate(YangInstanceIdentifier.empty(), root, currentRoot);
+            return new NoopDataTreeCandidate(YangInstanceIdentifier.of(), root, currentRoot);
         }
 
         final var newRoot = m.getStrategy().apply(m.getRootModification(), Optional.of(currentRoot), m.getVersion());
         checkState(newRoot.isPresent(), "Apply strategy failed to produce root node for modification %s", modification);
-        return new InMemoryDataTreeCandidate(YangInstanceIdentifier.empty(), root, currentRoot, newRoot.orElseThrow());
+        return new InMemoryDataTreeCandidate(YangInstanceIdentifier.of(), root, currentRoot, newRoot.orElseThrow());
     }
 
     private static InMemoryDataTreeModification checkedCast(final DataTreeModification mod) {