BUG-6522: share instances of Config(Effective)Statement
[yangtools.git] / yang / yang-parser-impl / src / main / java / org / opendaylight / yangtools / yang / parser / stmt / rfc6020 / effective / DeviateEffectiveStatementImpl.java
index c56f146c010607b0b0de2c57dc26df0c93fc7488..40cc4263cbd87e8cb8e8fd6f8d1a7b88cffba570 100644 (file)
@@ -42,7 +42,7 @@ public final class DeviateEffectiveStatementImpl
 
         this.deviateType = argument();
 
-        final ConfigEffectiveStatementImpl configStmt = firstEffective(ConfigEffectiveStatementImpl.class);
+        final ConfigEffectiveStatement configStmt = firstEffective(ConfigEffectiveStatement.class);
         this.deviatedConfig = configStmt == null ? null : configStmt.argument();
         final DefaultEffectiveStatementImpl defaultStmt = firstEffective(DefaultEffectiveStatementImpl.class);
         this.deviatedDefault = defaultStmt == null ? null : defaultStmt.argument();
@@ -112,7 +112,7 @@ public final class DeviateEffectiveStatementImpl
     }
 
     @Override
-    public boolean equals(Object obj) {
+    public boolean equals(final Object obj) {
         if (this == obj) {
             return true;
         }
@@ -140,4 +140,4 @@ public final class DeviateEffectiveStatementImpl
         return Objects.hash(deviateType, deviatedConfig, deviatedDefault, deviatedMandatory, deviatedMaxElements,
                 deviatedMinElements, deviatedMustDefinitions, deviatedType, deviatedUniqueConstraints, deviatedUnits);
     }
-}
\ No newline at end of file
+}