Fix DataTreeCandidateNodes handling of deleted nodes 36/102536/5
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 3 Oct 2022 08:42:11 +0000 (10:42 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 3 Oct 2022 10:25:49 +0000 (12:25 +0200)
commita3bdb0fbc05db361f7c105469ffd73b1e35390be
treedb07e92d4412e39125b55408b830c7b1e948a782
parent39936df1e00600e14a89a5b82f161fdf048565fb
Fix DataTreeCandidateNodes handling of deleted nodes

Recursive candidate should be used only for DistinctNodeContainer,
not all NormalizedNodeContainers. Fix the check so that we do not hit a
ClassCastException.

JIRA: YANGTOOLS-1455
Change-Id: I6a89f8e59a7f8d8b36c5c5d2990290f66f79f529
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
data/yang-data-tree-spi/src/main/java/org/opendaylight/yangtools/yang/data/tree/spi/DataTreeCandidateNodes.java
data/yang-data-tree-spi/src/test/java/org/opendaylight/yangtools/yang/data/tree/spi/YT1455Test.java [new file with mode: 0644]