Fix DataTreeCandidateNodes handling of deleted nodes 41/102541/2
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 11:04:04 +0000 (13:04 +0200)
commit85bf51f6f15374fb4d4c267c204d03d71831206f
tree97433f2cac002394ee06178e22a645fc2545a72e
parent10d51ab0a2aca188cdc5cb23f5dee03464195789
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>
(cherry picked from commit a3bdb0fbc05db361f7c105469ffd73b1e35390be)
data/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/schema/tree/DataTreeCandidateNodes.java
data/yang-data-api/src/test/java/org/opendaylight/yangtools/yang/data/api/schema/tree/YT1455Test.java [new file with mode: 0644]