AbstractEffectiveModule should retain statement order 90/87090/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:15 +0000 (06:55 +0100)
commit074c3c767aa476dac172969bbce980dc8a05abda
tree9e68d07497a3f3b529f432807034f59c1c1a75a8
parent808cb35ac5d9f13883ee0ac7026a455eb154252d
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