Rework choice iteration in LeafRefValidatation 38/75838/1
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 7 Sep 2018 09:14:48 +0000 (11:14 +0200)
committerRobert Varga <nite@hq.sk>
Fri, 7 Sep 2018 11:39:52 +0000 (11:39 +0000)
commit2b0258832c3dd9d3c10fecd20ac71cfa5db3bbef
tree49f07048da30baa0cedabae81a02cda7ca6fd34d
parent9100a1727e42387dc2ab075b825fdfa579dd637a
Rework choice iteration in LeafRefValidatation

Rather than extracting ChoiceNodes into a temporary list, use
a consumer which will be invoked for each of them.

JIRA: YANGTOOLS-892
Change-Id: I0956bed6e446c1ee4bf44c88fcc361abe8a508e5
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 4a29fdd9dadf755ff6b3b6e34e9ff43c22a6b765)
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/leafref/LeafRefValidatation.java