From: Ivan Hrasko Date: Tue, 6 May 2025 08:07:36 +0000 (+0200) Subject: Break the loop when we find a child X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=93baedf5a415b8868da9b4abdd43ba7916b033b6;p=netconf.git Break the loop when we find a child Break the loop over choice cases when have successfully found the correct child. JIRA: NETCONF-1454 Change-Id: If945ae142e67ab2b8eff516beaa552d83bc5c11c Signed-off-by: Ivan Hrasko --- diff --git a/protocol/databind/src/main/java/org/opendaylight/netconf/databind/subtree/SubtreeFilterReader.java b/protocol/databind/src/main/java/org/opendaylight/netconf/databind/subtree/SubtreeFilterReader.java index 1bb1019012..800763b0d8 100644 --- a/protocol/databind/src/main/java/org/opendaylight/netconf/databind/subtree/SubtreeFilterReader.java +++ b/protocol/databind/src/main/java/org/opendaylight/netconf/databind/subtree/SubtreeFilterReader.java @@ -183,6 +183,7 @@ final class SubtreeFilterReader { parentStack.exit(); // exit case parentStack.exit(); + break; } } } else {