Do not expand schema tree values 83/87383/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:40 +0000 (12:06 +0100)
commit64aee739413ad5e89884dbc873e11edc1c1cb16e
treeb3436969247a3e097ec413e49b7324fa4e429390
parent5821a248c2397f302c7cdff9ba0cfe2c737f05d2
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