BUG-4355: mandatory node presence enforcement
[yangtools.git] / yang / yang-data-impl / src / main / java / org / opendaylight / yangtools / yang / data / impl / schema / tree / InMemoryDataTree.java
index 08125b90971e5b2bccfdf3b2ef8f19afaba079fb..13070428ec896c1722f01454bdd2841a4b25fcab 100644 (file)
@@ -75,7 +75,8 @@ final class InMemoryDataTree extends AbstractDataTreeTip implements TipProducing
 
         final ModificationApplyOperation rootNode;
         if (rootSchemaNode instanceof ContainerSchemaNode) {
-            rootNode = new PresenceContainerModificationStrategy((ContainerSchemaNode) rootSchemaNode, treeType);
+            // FIXME: real root needs to enfore presence, but that require pre-population
+            rootNode = new ContainerModificationStrategy((ContainerSchemaNode) rootSchemaNode, treeType);
         } else {
             rootNode = SchemaAwareApplyOperation.from(rootSchemaNode, treeType);
         }