Minor code cleanups
[yangtools.git] / yang / yang-data-impl / src / main / java / org / opendaylight / yangtools / yang / data / impl / schema / SchemaUtils.java
index 6bd8c4e70774a9687fadcae30fcf6968eb3e9c11..f0afe4263f978b3fc91efa8ba4ac0da2577ebe18 100644 (file)
@@ -461,7 +461,7 @@ public final class SchemaUtils {
             return child;
         }
         if (node instanceof ChoiceSchemaNode) {
-            return ((ChoiceSchemaNode) node).getCaseNodeByName(qname);
+            return ((ChoiceSchemaNode) node).getCases().get(qname);
         }
         if (node instanceof OperationDefinition) {
             switch (qname.getLocalName()) {