A simple thinko: we should just clear the flag, not ever
reset it back.
JIRA: YANGTOOLS-1234
Change-Id: I1ecbe4f754788a1a8781ac525e955876e7a8a142
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
boolean sameAsSchema = true;
for (SchemaTreeEffectiveStatement<?> child : schemaTreeStatements) {
- sameAsSchema = indexDataTree(dataChildren, child);
+ if (!indexDataTree(dataChildren, child)) {
+ sameAsSchema = false;
+ }
}
// This is a mighty hack to lower memory usage: if we consumed all schema tree children as data nodes,