Eliminate superfluous onFullDefinitionDeclared overrides
[yangtools.git] / yang / yang-parser-impl / src / main / java / org / opendaylight / yangtools / yang / parser / stmt / rfc6020 / ErrorMessageStatementImpl.java
index 467b052cb1c603906eebf229cb24c8d4a3856f39..4c047ebba0312d2517ca0854a8586438ec60ef0c 100644 (file)
@@ -24,7 +24,7 @@ public class ErrorMessageStatementImpl extends
             .build();
 
     protected ErrorMessageStatementImpl(
-            StmtContext<String, ErrorMessageStatement, ?> context) {
+            final StmtContext<String, ErrorMessageStatement, ?> context) {
         super(context);
     }
 
@@ -37,29 +37,22 @@ public class ErrorMessageStatementImpl extends
         }
 
         @Override
-        public String parseArgumentValue(StmtContext<?, ?, ?> ctx, String value) {
+        public String parseArgumentValue(final StmtContext<?, ?, ?> ctx, final String value) {
             return value;
         }
 
         @Override
         public ErrorMessageStatement createDeclared(
-                StmtContext<String, ErrorMessageStatement, ?> ctx) {
+                final StmtContext<String, ErrorMessageStatement, ?> ctx) {
             return new ErrorMessageStatementImpl(ctx);
         }
 
         @Override
         public EffectiveStatement<String, ErrorMessageStatement> createEffective(
-                StmtContext<String, ErrorMessageStatement, EffectiveStatement<String, ErrorMessageStatement>> ctx) {
+                final StmtContext<String, ErrorMessageStatement, EffectiveStatement<String, ErrorMessageStatement>> ctx) {
             return new ErrorMessageEffectiveStatementImpl(ctx);
         }
 
-        @Override
-        public void onFullDefinitionDeclared(StmtContext.Mutable<String, ErrorMessageStatement,
-                EffectiveStatement<String, ErrorMessageStatement>> stmt) {
-            super.onFullDefinitionDeclared(stmt);
-            getSubstatementValidator().validate(stmt);
-        }
-
         @Override
         protected SubstatementValidator getSubstatementValidator() {
             return SUBSTATEMENT_VALIDATOR;