Rework path LeafRefValidatation path tracking 29/75829/1
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 7 Sep 2018 08:36:20 +0000 (10:36 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 7 Sep 2018 08:38:30 +0000 (10:38 +0200)
commitbf2d22d26533e9bc5819540b911b13e6a1bed9c8
tree8cadaabafd91efebdbb9d55b555f7a2d2a1c1943
parente8ecfb6f906dfd7e7bff791abf0b601eb71766a8
Rework path LeafRefValidatation path tracking

Rather than using a plain iterable sourced from LeafRefPath.getPathFromRoot(),
maintain a Deque sourced via getPathTowardsRoot(). This eliminates the need
for Iterables.skip() as well as not forcing getPathFromRoot() being initialized.

Change-Id: I23c054a63b2c0ceed24fcf48d2636508ee13d568
JIRA: YANGTOOLS-892
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