Fixup collections return implementations
[yangtools.git] / yang / yang-parser-rfc7950 / src / main / java / org / opendaylight / yangtools / yang / parser / rfc7950 / stmt / choice / ChoiceEffectiveStatementImpl.java
index a1e23c24b04dfac3bc34c164a7e32a6ad617952e..0e1cbd8248a14d24c64496942464458f50a9f81a 100644 (file)
@@ -77,7 +77,7 @@ final class ChoiceEffectiveStatementImpl extends WithSubstatements<QName, Choice
     }
 
     @Override
-    public Collection<? extends CaseSchemaNode> getCases() {
+    public Collection<? extends @NonNull CaseSchemaNode> getCases() {
         return filterEffectiveStatements(CaseSchemaNode.class);
     }
 
@@ -86,6 +86,11 @@ final class ChoiceEffectiveStatementImpl extends WithSubstatements<QName, Choice
         return Optional.ofNullable(defaultCase);
     }
 
+    @Override
+    public ChoiceEffectiveStatement asEffectiveStatement() {
+        return this;
+    }
+
     @Override
     public String toString() {
         return ChoiceEffectiveStatementImpl.class.getSimpleName() + "[" + "qname=" + getQName() + "]";