Fix ImmutableUnkeyedListNodeBuilder.valueEquals() 36/80336/2
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 14 Feb 2019 16:40:47 +0000 (17:40 +0100)
committerRobert Varga <nite@hq.sk>
Thu, 14 Feb 2019 17:15:24 +0000 (17:15 +0000)
commitd07b80a4f58185404bf1efa7874e9e1539643e84
treeec471acb5ae91073e316d0c027c97ad527ebd63a
parent6b0c1f975b558c3aef366e1e0c05a5abd2a4c946
Fix ImmutableUnkeyedListNodeBuilder.valueEquals()

Returning an empty Set from getValue() means that if we ever
encountered two instances of this class in comparison, their values
would fail to compare, as valueEquals() expects a List.

Fix this by returning ImmutableList.of() and codify that in the
return value.

Change-Id: I4301f4161648ea391f2e0a1e712e3f87c6dca33c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/builder/impl/ImmutableUnkeyedListNodeBuilder.java