Fix GroupingEffectiveStatementImpl's unknown nodes 74/47074/2
authorRobert Varga <rovarga@cisco.com>
Tue, 18 Oct 2016 14:30:07 +0000 (16:30 +0200)
committerRobert Varga <rovarga@cisco.com>
Tue, 18 Oct 2016 15:41:30 +0000 (17:41 +0200)
commit647eddd0c2c6c2a0e2f68f52f65b7a9b6ee0a53b
tree30e1c849d58364c8a5af81904fdbf8476f5c7501
parent1f56bcb262d2b5f6b7fb6c879e30143db07945ec
Fix GroupingEffectiveStatementImpl's unknown nodes

Heap analysis has pointed out a linked list, which is both
a correctness problem (it should be immutable) and efficiency
issue, as most of the time this list should be empty.

Use ImmutableList.Builder to build an immutable list of
unknown statements.

Change-Id: I94a42cb75d8fa433bcae304728268b0873d14683
Signed-off-by: Robert Varga <rovarga@cisco.com>
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/effective/GroupingEffectiveStatementImpl.java