Rework path LeafRefValidatation path tracking 33/75833/1
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 7 Sep 2018 08:36:20 +0000 (10:36 +0200)
committerRobert Varga <nite@hq.sk>
Fri, 7 Sep 2018 09:33:21 +0000 (09:33 +0000)
commitffd8081b45e8579631fea414be90761b57202a7a
tree0a7a9451e05ed85340a4ed490281d4e33ebba760
parentd567110c2174a382a6ea7ae395af309e1c069aba
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