Move use of EffectiveStmtCtx.caerbannog()
[yangtools.git] / yang / yang-parser-rfc7950 / src / main / java / org / opendaylight / yangtools / yang / parser / rfc7950 / stmt / list / AbstractListEffectiveStatement.java
index 601640cae509811842eb9f9578cf75bd725f053e..1ac449c5a7c0ecbb7b695caddb5754321bde1718 100644 (file)
@@ -56,10 +56,9 @@ abstract class AbstractListEffectiveStatement
             final ImmutableList<QName> keyDefinition) {
         super(stmt.declared(), substatements, stmt.sourceReference());
 
-        final var rabbit = stmt.caerbannog();
-        EffectiveStmtUtils.checkUniqueGroupings(rabbit, substatements, stmt.sourceReference());
-        EffectiveStmtUtils.checkUniqueTypedefs(rabbit, substatements, stmt.sourceReference());
-        EffectiveStmtUtils.checkUniqueUses(rabbit, substatements, stmt.sourceReference());
+        EffectiveStmtUtils.checkUniqueGroupings(stmt, substatements);
+        EffectiveStmtUtils.checkUniqueTypedefs(stmt, substatements);
+        EffectiveStmtUtils.checkUniqueUses(stmt, substatements);
 
         this.substatements = maskList(substatements);
         this.path = requireNonNull(path);