Untangle result processing logic. 00/75800/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 5 Sep 2018 19:33:55 +0000 (21:33 +0200)
committerRobert Varga <nite@hq.sk>
Thu, 6 Sep 2018 08:39:16 +0000 (08:39 +0000)
commit5436363cdac42fdf8fe3be49397d77abc7f1bdb7
treedea485a1eab44cc1b9308e8104352bdf39c6b5d2
parent2f71a38e74ade46c47b4c1534f78a21e521f05af
Untangle result processing logic.

leafRefTargetNodeDataLog() is needlessly complex, where it is called
with 3 different sets of arguments from validateLeafRefTargetNodeData()
only.

Inline two of those callers, reducing nesting significantly and
making the code flow more obvious.

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