Disconnect NormalizedNode from Identifiable
[yangtools.git] / data / yang-data-impl / src / main / java / org / opendaylight / yangtools / yang / data / impl / schema / builder / impl / ImmutableUserMapNodeBuilder.java
index 0ab49807c341652de1719bb277b416b7de1535b6..77e069e6773f2a03ba356b1c716b237cf0fa4f5a 100644 (file)
@@ -45,7 +45,7 @@ public class ImmutableUserMapNodeBuilder implements CollectionNodeBuilder<MapEnt
     }
 
     private ImmutableUserMapNodeBuilder(final ImmutableUserMapNode node) {
-        nodeIdentifier = node.getIdentifier();
+        nodeIdentifier = node.name();
         value = node.children;
         dirty = true;
     }
@@ -75,7 +75,7 @@ public class ImmutableUserMapNodeBuilder implements CollectionNodeBuilder<MapEnt
     @Override
     public CollectionNodeBuilder<MapEntryNode, UserMapNode> withChild(final MapEntryNode child) {
         checkDirty();
-        value.put(child.getIdentifier(), child);
+        value.put(child.name(), child);
         return this;
     }