Eliminate superfluous onFullDefinitionDeclared overrides
[yangtools.git] / yang / yang-parser-impl / src / main / java / org / opendaylight / yangtools / yang / parser / stmt / rfc6020 / PrefixStatementImpl.java
index 69a905d506e828ad777f6a5151841996ceca7d7b..11f08f9a273dced65d33f01646b51b77dc6087ff 100644 (file)
@@ -22,41 +22,36 @@ public class PrefixStatementImpl extends AbstractDeclaredStatement<String> imple
             .PREFIX)
             .build();
 
-    public static class Definition extends AbstractStatementSupport<String,PrefixStatement,EffectiveStatement<String,PrefixStatement>> {
+    public static class Definition
+        extends AbstractStatementSupport<String, PrefixStatement, EffectiveStatement<String, PrefixStatement>> {
 
         public Definition() {
             super(YangStmtMapping.PREFIX);
         }
 
         @Override
-        public String parseArgumentValue(StmtContext<?, ?,?> ctx, String value) {
+        public String parseArgumentValue(final StmtContext<?, ?,?> ctx, final String value) {
             return value;
         }
 
         @Override
-        public PrefixStatement createDeclared(StmtContext<String, PrefixStatement,?> ctx) {
+        public PrefixStatement createDeclared(final StmtContext<String, PrefixStatement,?> ctx) {
             return new PrefixStatementImpl(ctx);
         }
 
         @Override
-        public EffectiveStatement<String,PrefixStatement> createEffective(StmtContext<String, PrefixStatement,EffectiveStatement<String,PrefixStatement>> ctx) {
+        public EffectiveStatement<String,PrefixStatement> createEffective(
+                final StmtContext<String, PrefixStatement, EffectiveStatement<String, PrefixStatement>> ctx) {
             return new PrefixEffectiveStatementImpl(ctx);
         }
 
-        @Override
-        public void onFullDefinitionDeclared(StmtContext.Mutable<String, PrefixStatement,
-                EffectiveStatement<String, PrefixStatement>> stmt) {
-            super.onFullDefinitionDeclared(stmt);
-            getSubstatementValidator().validate(stmt);
-        }
-
         @Override
         protected SubstatementValidator getSubstatementValidator() {
             return SUBSTATEMENT_VALIDATOR;
         }
     }
 
-    PrefixStatementImpl(StmtContext<String, PrefixStatement,?> context) {
+    PrefixStatementImpl(final StmtContext<String, PrefixStatement,?> context) {
         super(context);
     }