Use modifiable List when resolving relative xpath 33/91333/1
authorTomas Cere <tomas.cere@pantheon.tech>
Tue, 14 Jul 2020 13:05:18 +0000 (15:05 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 15 Jul 2020 10:04:13 +0000 (12:04 +0200)
commit7fd7c7508d3ad9fa4d74946ec7047282c3403ffa
tree1c613b2ac4f08d3718f2344d4538155cb3383e3a
parent590ecabb7dac38069747538a8e49e9122d50a620
Use modifiable List when resolving relative xpath

When we have split the path into its components, we can end up
compressing them further. Make sure the list is actually mutable.

JIRA: YANGTOOLS-1125
Change-Id: I1d4cd66d2efbb1955bb189763ea09fefeba93d25
Signed-off-by: Tomas Cere <tomas.cere@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 69cb7d1ab7a329e2bd19f538b3d598be91c49f2d)
yang/yang-model-util-ut/src/test/java/org/opendaylight/yangtools/yang/model/util/ut/LeafrefStaticAnalysisTest.java
yang/yang-model-util-ut/src/test/resources/leafrefs.yang
yang/yang-model-util/src/main/java/org/opendaylight/yangtools/yang/model/util/SchemaContextUtil.java