Eliminate LeafRefValidation.forEachChoice() 38/75938/2
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 10 Sep 2018 15:19:51 +0000 (17:19 +0200)
committerRobert Varga <nite@hq.sk>
Mon, 10 Sep 2018 15:36:42 +0000 (15:36 +0000)
commit2e5aa3f65c94a36a2f94fc4ee679a851e6f01ca5
tree8e5b4075d6f4e795bf49aa810271e39278da4355
parent6644d979853220e03aaba46e3bc94e8a362f3cff
Eliminate LeafRefValidation.forEachChoice()

As it turns out the two call sites can share more code. Introduce
processChildNode(), inlining forEachChoice() and its surrounding
lookup logic.

JIRA: YANGTOOLS-892
Change-Id: I2091abcd579ce1d48a628c3bdea9b4514b050e29
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/leafref/LeafRefValidation.java