Fix ImmutableUnkeyedListNodeBuilder.valueEquals() 42/80342/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 14 Feb 2019 16:40:47 +0000 (17:40 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 14 Feb 2019 17:17:42 +0000 (18:17 +0100)
commit0736c9c93dff667dd2abaf5de92ca68ea64869d6
tree96f0e75138b76dcc52c267c94e71f4c344efc4f0
parent6590c9eb54a2bc735139d1f51e5f1fbbb0a46238
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>
(cherry picked from commit 25754bb0fdf91e8d48994f9c186e90f9f1901f5c)
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/builder/impl/ImmutableUnkeyedListNodeBuilder.java