Another round of checkstyle fixes
[yangtools.git] / yang / yang-parser-impl / src / main / java / org / opendaylight / yangtools / yang / parser / stmt / rfc7950 / ActionStatementImpl.java
index 4ccef75a1bbdf4b13af3e6f759eb1507a5a30dcb..8316de062e0b3e88eec75b661a4c715ac9d6c17a 100644 (file)
@@ -27,7 +27,7 @@ import org.opendaylight.yangtools.yang.model.api.stmt.ReferenceStatement;
 import org.opendaylight.yangtools.yang.model.api.stmt.StatusStatement;
 import org.opendaylight.yangtools.yang.model.api.stmt.TypedefStatement;
 import org.opendaylight.yangtools.yang.parser.spi.meta.AbstractDeclaredStatement;
-import org.opendaylight.yangtools.yang.parser.spi.meta.AbstractStatementSupport;
+import org.opendaylight.yangtools.yang.parser.spi.meta.AbstractQNameStatementSupport;
 import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext;
 import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContextUtils;
 import org.opendaylight.yangtools.yang.parser.spi.meta.SubstatementValidator;
@@ -53,7 +53,7 @@ public class ActionStatementImpl extends AbstractDeclaredStatement<QName> implem
     }
 
     public static class Definition
-            extends AbstractStatementSupport<QName, ActionStatement, EffectiveStatement<QName, ActionStatement>> {
+            extends AbstractQNameStatementSupport<ActionStatement, EffectiveStatement<QName, ActionStatement>> {
 
         private static final Set<StatementDefinition> ILLEGAL_PARENTS = ImmutableSet.of(YangStmtMapping.NOTIFICATION,
                 YangStmtMapping.RPC, YangStmtMapping.ACTION);
@@ -83,8 +83,8 @@ public class ActionStatementImpl extends AbstractDeclaredStatement<QName> implem
         public EffectiveStatement<QName, ActionStatement> createEffective(
                 final StmtContext<QName, ActionStatement, EffectiveStatement<QName, ActionStatement>> ctx) {
             SourceException.throwIf(StmtContextUtils.hasAncestorOfType(ctx, ILLEGAL_PARENTS),
-                    ctx.getStatementSourceReference(), "Action %s is defined within a notification, rpc or another action",
-                    ctx.getStatementArgument());
+                    ctx.getStatementSourceReference(),
+                    "Action %s is defined within a notification, rpc or another action", ctx.getStatementArgument());
             SourceException.throwIf(!StmtContextUtils.hasAncestorOfTypeWithChildOfType(ctx, YangStmtMapping.LIST,
                     YangStmtMapping.KEY), ctx.getStatementSourceReference(),
                     "Action %s is defined within a list that has no key statement", ctx.getStatementArgument());