Untangle result processing logic. 76/75776/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 5 Sep 2018 19:33:55 +0000 (21:33 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 5 Sep 2018 21:05:02 +0000 (23:05 +0200)
commita538bafb5db59101206a5d1fd2a1d31e79c08de0
tree4daf4e9a409fe22bfb5a950730f28b45f438365f
parent4b7393b11151722f44c19236684c661cf5f8edd0
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>
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/leafref/LeafRefValidatation.java