QNameWithPredicateBuilder should use an ArrayList 00/32000/2
authorRobert Varga <robert.varga@pantheon.sk>
Sat, 2 Jan 2016 12:55:34 +0000 (13:55 +0100)
committerGerrit Code Review <gerrit@opendaylight.org>
Mon, 4 Jan 2016 16:22:28 +0000 (16:22 +0000)
commit9fe749bedc154b0263d90337e70328abe36ec624
tree71486dbdd5d4070ff53e16cf31589521b42ebc01
parent7afdd83a7bcb0f52b428a828f8d766daf33dbc61
QNameWithPredicateBuilder should use an ArrayList

Also fix QNameWithPredicateImpl's promise of being Immutable, by copying
the predicates. Otherwise these could be modified by the leaked
collection.

Change-Id: I46105644986bb7a99faf4bd3d6f8b9ff3ff84592
Signed-off-by: Robert Varga <robert.varga@pantheon.sk>
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/leafref/QNameWithPredicateBuilder.java
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/leafref/QNameWithPredicateImpl.java