Allow LeafSetEntryNodes to be added to result builder 29/82029/2
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 14 May 2019 11:23:28 +0000 (13:23 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 14 May 2019 11:25:05 +0000 (13:25 +0200)
commit8cc9cb02eaaa5699fbea62595079bae00f9efd25
treeac185bce94aedad3de3b8c64cb606d00376536d3
parent7eb3171c7e2940e0dbb81407df5c033b952705ae
Allow LeafSetEntryNodes to be added to result builder

This amends the check of parent builders to account for
NormalizedNodeResultBuilder, so that individual entries may be
received. Also optimizes the checking a bit by caching the current
builder instead of fetching it from the stack.

JIRA: YANGTOOLS-987
Change-Id: I7b77bd17ffd4671b5d5c2fbe25dee8d95757a1f0
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/ImmutableNormalizedNodeStreamWriter.java