Eliminate superfluous onFullDefinitionDeclared overrides
[yangtools.git] / yang / yang-parser-impl / src / main / java / org / opendaylight / yangtools / yang / parser / stmt / rfc6020 / LeafStatementImpl.java
index 783607a42058fa5eb4487f2409ca9d563903b292..9225075464239807261e5e6251aabfb697da1c08 100644 (file)
@@ -67,23 +67,17 @@ public class LeafStatementImpl extends AbstractDeclaredStatement<QName> implemen
             stmt.getParentContext().addToNs(ChildSchemaNodes.class, stmt.getStatementArgument(), stmt);
         }
 
-        @Override public LeafStatement createDeclared(
-                final StmtContext<QName, LeafStatement, ?> ctx) {
+        @Override
+        public LeafStatement createDeclared(final StmtContext<QName, LeafStatement, ?> ctx) {
             return new LeafStatementImpl(ctx);
         }
 
-        @Override public EffectiveStatement<QName, LeafStatement> createEffective(
+        @Override
+        public EffectiveStatement<QName, LeafStatement> createEffective(
                 final StmtContext<QName, LeafStatement, EffectiveStatement<QName, LeafStatement>> ctx) {
             return new LeafEffectiveStatementImpl(ctx);
         }
 
-        @Override
-        public void onFullDefinitionDeclared(final Mutable<QName, LeafStatement,
-                EffectiveStatement<QName, LeafStatement>> stmt) {
-            super.onFullDefinitionDeclared(stmt);
-            getSubstatementValidator().validate(stmt);
-        }
-
         @Override
         protected SubstatementValidator getSubstatementValidator() {
             return SUBSTATEMENT_VALIDATOR;