Fix {Length,Range}Statement retaining ArrayLists 28/86828/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 9 Jan 2020 15:06:16 +0000 (16:06 +0100)
committerRobert Varga <nite@hq.sk>
Thu, 9 Jan 2020 16:40:40 +0000 (16:40 +0000)
commit1a44ce6a0ce6300bd2fce1724d6bd6b7d8b79f37
tree5713c41a8a5e4c630a563aeeb023c1f51ff33f82
parentf0f4b87fe3c75148863d31fd4d8f7687f22e0add
Fix {Length,Range}Statement retaining ArrayLists

We want the statement argument to be immutable, make sure this
is so, incidentally reducing footprint, too.

Change-Id: I5e3353ad885ab3cc9eef910d2d4bff1db9eabcf0
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/length/LengthStatementSupport.java
yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/range/RangeStatementSupport.java