Code Review
/
yangtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
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
diff --git
a/yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/tree/InMemoryDataTree.java
b/yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/tree/InMemoryDataTree.java
index 08125b90971e5b2bccfdf3b2ef8f19afaba079fb..13070428ec896c1722f01454bdd2841a4b25fcab 100644
(file)
--- a/
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/tree/InMemoryDataTree.java
+++ b/
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/tree/InMemoryDataTree.java
@@
-75,7
+75,8
@@
final class InMemoryDataTree extends AbstractDataTreeTip implements TipProducing
final ModificationApplyOperation rootNode;
if (rootSchemaNode instanceof ContainerSchemaNode) {
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);
}
} else {
rootNode = SchemaAwareApplyOperation.from(rootSchemaNode, treeType);
}