Since our implementation relies hashCode()/equals(), we really
want to make sure same-source comparison ends up being equal,
hence we collect to a list (which is faster than a set). This is
okay, as all equality checks sit behind an implementation instanceof.
JIRA: YANGTOOLS-1065
Change-Id: I521a8a7cfc2af012928da55708a0a519dae85095
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
@Override
default Collection<DataSchemaNode> getChildNodes() {
- return filterEffectiveStatements(DataSchemaNode.class);
+ // Note: two invocations must end up being equal
+ return filterEffectiveStatementsList(DataSchemaNode.class);
}
@Override