Reformulate LeafRefContext without SchemaPath 12/94412/20
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 1 Feb 2021 09:55:54 +0000 (10:55 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 2 Sep 2021 09:54:47 +0000 (11:54 +0200)
commit01fa439ddcd0d74548e24ccbe0bee02cb8a39b29
treec9def7a0cf4f81bbe3155050e3c08e6972c70674
parentac5650d579252f6a4e19f77244554f10cb997773
Reformulate LeafRefContext without SchemaPath

The use of SchemaNode.getPath() is a mistake, which we really want to
correct. Use SchemaNodeIdentifier to identify nodes, as that is really
what we need -- and the methods are really belong to LeafRefContext, not
into a separate LeafRefContextUtils class.

JIRA: YANGTOOLS-1092
Change-Id: I012861b8f4ad580b86b49a1265eba785958e3437
Signed-off-by: miroslav.kovac <miroslav.kovac@pantheon.tech>
Signed-off-by: Michal Banik <michal.banik@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
data/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/leafref/LeafRefContext.java
data/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/leafref/LeafRefContextBuilder.java
data/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/leafref/LeafRefContextUtils.java [deleted file]
data/yang-data-impl/src/test/java/org/opendaylight/yangtools/yang/data/impl/leafref/context/LeafRefContextTest.java
data/yang-data-impl/src/test/java/org/opendaylight/yangtools/yang/data/impl/leafref/context/LeafRefContextTreeBuilderTest.java