Rework choice iteration in LeafRefValidatation 31/75831/3
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 7 Sep 2018 09:14:48 +0000 (11:14 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 7 Sep 2018 09:39:35 +0000 (11:39 +0200)
commit4a29fdd9dadf755ff6b3b6e34e9ff43c22a6b765
treec7b6af831f2b8c4aad5b51c2fec68be4fe1c947e
parent32653e9bae074b5b4e43b2a8da78d0bd83b5e8ee
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>
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/leafref/LeafRefValidatation.java