Reuse OrderedByEffectiveStatement instances 72/87272/1
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 26 Jan 2020 19:18:37 +0000 (20:18 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 29 Jan 2020 16:14:35 +0000 (17:14 +0100)
commit20d1af49ac3ff9fb27358e8a8472e2842792233d
tree34a65dcc92c8eeb08dd89cce65147f776d2251d8
parente938c422ef0287416c350d53987354ec29ff6d88
Reuse OrderedByEffectiveStatement instances

This is a low-cardinality statement for which we are already reusing
declared instances. This extends that support to cover effective
instances based on the shared declared instances.

Also ditch the use of EnumMap -- while it works, we only have two
values, which is easily taken care of by a switch statement.

JIRA: YANGTOOLS-1065
Change-Id: I43f135c9dec443b1b46b5517fa98f2c08af3d877
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit b235e6290637ae2decf53015012807026bb849db)
yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/ordered_by/OrderedByStatementSupport.java