Do not expand schema tree values 84/87384/2
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 3 Feb 2020 03:02:11 +0000 (04:02 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 3 Feb 2020 11:06:21 +0000 (12:06 +0100)
commitc11e67a96fa21438d6dd66b03224fad75f42d3d1
treea81d01e11823af6b0a4fa9425212ecca84efb0b7
parente64979c9ffd12eff2eaff2e6653addbdaa29f1cf
Do not expand schema tree values

When we are constructing a dataTree from a schemaTree, we do not want
to operate on the ImmutableMap result, as that results in the values
view being retained. This amounts to unnecessary overhead, as we
typically do not need this view and it should be materialized only
if it is needed.

JIRA: YANGTOOLS-652
Change-Id: I3d1d689366a48822324c442da184496d9c6d873b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/AbstractDeclaredEffectiveStatement.java
yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/AbstractSchemaEffectiveDocumentedNode.java