Reuse OrderedByEffectiveStatement instances 75/87175/1
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 26 Jan 2020 19:18:37 +0000 (20:18 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 27 Jan 2020 14:51:35 +0000 (15:51 +0100)
commitb235e6290637ae2decf53015012807026bb849db
treec758586b7f0eecd2887abb22e9f64f1bb7d672e4
parentab3c2696f4b6ebc62529570ba39110876c3a3c98
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>
yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/ordered_by/OrderedByStatementSupport.java