Reuse the a NodeIdentifier for SchemaContext.NAME
[yangtools.git] / data / yang-data-impl / src / main / java / org / opendaylight / yangtools / yang / data / impl / schema / ImmutableNodes.java
index 5b3b694828915a41fe36e8fcb8d7efaeeb6ac912..51cbd9097c03ddf387459fab69710414b7b374f6 100644 (file)
@@ -209,7 +209,7 @@ public final class ImmutableNodes {
     public static @NonNull NormalizedNode fromInstanceId(final EffectiveModelContext ctx,
             final YangInstanceIdentifier id) {
         if (id.isEmpty()) {
-            return ImmutableNodes.containerNode(SchemaContext.NAME);
+            return containerNode(SCHEMACONTEXT_NAME);
         }
 
         final var result = new NormalizedNodeResult();