Reformulate StatementContextFactory.createEffective()
[yangtools.git] / yang / yang-parser-rfc7950 / src / main / java / org / opendaylight / yangtools / yang / parser / rfc7950 / stmt / position / PositionStatementSupport.java
index bd0a57179d7c74119e21fdea4835c4f3b03d6fbf..dfe9a89756e235b4f419750ec33609f78d849703 100644 (file)
@@ -60,14 +60,13 @@ public final class PositionStatementSupport
     }
 
     @Override
-    protected PositionEffectiveStatement createEmptyEffective(final PositionStatement declared) {
-        return new EmptyPositionEffectiveStatement(declared);
+    protected PositionEffectiveStatement createEffective(final PositionStatement declared,
+            final ImmutableList<? extends EffectiveStatement<?, ?>> substatements) {
+        return new RegularPositionEffectiveStatement(declared, substatements);
     }
 
     @Override
-    protected PositionEffectiveStatement createEffective(
-            final StmtContext<Uint32, PositionStatement, PositionEffectiveStatement> ctx,
-            final PositionStatement declared, final ImmutableList<? extends EffectiveStatement<?, ?>> substatements) {
-        return new RegularPositionEffectiveStatement(declared, substatements);
+    protected PositionEffectiveStatement createEmptyEffective(final PositionStatement declared) {
+        return new EmptyPositionEffectiveStatement(declared);
     }
 }
\ No newline at end of file