AbstractEffectiveModule should retain statement order 89/87089/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 22 Jan 2020 16:14:26 +0000 (17:14 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 23 Jan 2020 05:55:27 +0000 (06:55 +0100)
commitce411dfc8c67f7595f11ac6472019f9c3f30a9f8
treeb2300e6ac87a9ede108d7f1950e2d53072d970c8
parent35aa0e92fa29618e64b3dffa77d2b35f9b70ecab
AbstractEffectiveModule should retain statement order

AbstractEffectiveModule is using HashSet for its temporary storage,
which makes statement order dependent on hashCode() rather than
declaration order.

Make sure we use LinkedHashSet, thus not losing the order.

Change-Id: Ie46c28c051f861c1aabc34f7aa5e4293f7d38cea
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/rfc6241-parser-support/src/test/java/org/opendaylight/yangtools/rfc6241/parser/NetconfTest.java
yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/AbstractEffectiveModule.java