Move use of EffectiveStmtCtx.caerbannog()
[yangtools.git] / yang / yang-parser-rfc7950 / src / main / java / org / opendaylight / yangtools / yang / parser / rfc7950 / stmt / container / AbstractContainerStatementSupport.java
index ac6d56b95d5ed20d6bc9b1a0b03f69007b311174..cdae50b54382dee48d83ff328b3f978916b8caf8 100644 (file)
@@ -54,11 +54,9 @@ abstract class AbstractContainerStatementSupport
                 .setPresence(findFirstStatement(substatements, PresenceEffectiveStatement.class) != null)
                 .toFlags();
 
-        final var ref = stmt.sourceReference();
-        final var rabbit = stmt.caerbannog();
-        EffectiveStmtUtils.checkUniqueGroupings(rabbit, substatements, ref);
-        EffectiveStmtUtils.checkUniqueTypedefs(rabbit, substatements, ref);
-        EffectiveStmtUtils.checkUniqueUses(rabbit, substatements, ref);
+        EffectiveStmtUtils.checkUniqueGroupings(stmt, substatements);
+        EffectiveStmtUtils.checkUniqueTypedefs(stmt, substatements);
+        EffectiveStmtUtils.checkUniqueUses(stmt, substatements);
 
         return new ContainerEffectiveStatementImpl(stmt.declared(), substatements, stmt.sourceReference(), flags, path,
             original);