Eliminate superfluous onFullDefinitionDeclared overrides
[yangtools.git] / yang / yang-parser-impl / src / main / java / org / opendaylight / yangtools / yang / parser / stmt / rfc6020 / StringRestrictionsImpl.java
index ba3f2ebf4e75ca88b367ba8138c05c0e429247b5..4de13f8c380b92a48b5bdee61c6ed696bf91af35 100644 (file)
@@ -28,13 +28,13 @@ public class StringRestrictionsImpl extends AbstractDeclaredStatement<String> im
             .addAny(YangStmtMapping.PATTERN)
             .build();
 
-    protected StringRestrictionsImpl(final StmtContext<String, TypeStatement.StringRestrictions, ?> context) {
+    protected StringRestrictionsImpl(final StmtContext<String, StringRestrictions, ?> context) {
         super(context);
     }
 
     public static class Definition
             extends
-            AbstractStatementSupport<String, TypeStatement.StringRestrictions, EffectiveStatement<String, TypeStatement.StringRestrictions>> {
+            AbstractStatementSupport<String, StringRestrictions, EffectiveStatement<String, StringRestrictions>> {
 
         public Definition() {
             super(YangStmtMapping.TYPE);
@@ -46,24 +46,16 @@ public class StringRestrictionsImpl extends AbstractDeclaredStatement<String> im
         }
 
         @Override
-        public TypeStatement.StringRestrictions createDeclared(
-                final StmtContext<String, TypeStatement.StringRestrictions, ?> ctx) {
+        public StringRestrictions createDeclared(final StmtContext<String, StringRestrictions, ?> ctx) {
             return new StringRestrictionsImpl(ctx);
         }
 
         @Override
-        public EffectiveStatement<String, TypeStatement.StringRestrictions> createEffective(
-                final StmtContext<String, TypeStatement.StringRestrictions, EffectiveStatement<String, TypeStatement.StringRestrictions>> ctx) {
+        public EffectiveStatement<String, StringRestrictions> createEffective(
+                final StmtContext<String, StringRestrictions, EffectiveStatement<String, StringRestrictions>> ctx) {
             return new StringRestrictionsEffectiveStatementImpl(ctx);
         }
 
-        @Override
-        public void onFullDefinitionDeclared(final StmtContext.Mutable<String, StringRestrictions,
-                EffectiveStatement<String, StringRestrictions>> stmt) {
-            super.onFullDefinitionDeclared(stmt);
-            getSubstatementValidator().validate(stmt);
-        }
-
         @Override
         protected SubstatementValidator getSubstatementValidator() {
             return SUBSTATEMENT_VALIDATOR;
@@ -86,5 +78,4 @@ public class StringRestrictionsImpl extends AbstractDeclaredStatement<String> im
     public Collection<? extends PatternStatement> getPatterns() {
         return allDeclared(PatternStatement.class);
     }
-
 }