Untangle result processing logic. 01/75801/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:25 +0000 (08:39 +0000)
commit2f0e0531ca7ea87ad9a226433d71e6c3427df884
tree9cfd6ca336a059c17ac66852b857d5e6cb01fe47
parentda694a37f31131065d943b3c7718780700ad0320
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