Use modifiable List when resolving relative xpath 18/91318/9
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 09:23:09 +0000 (11:23 +0200)
commit69cb7d1ab7a329e2bd19f538b3d598be91c49f2d
treeb797c803f54699b16a077b67d0f191c4535f86e5
parent76fac8f8464bd072d9b26dccddb5450d3716dd51
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>
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