X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-parser-rfc7950%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fparser%2Frfc7950%2Fstmt%2Fmeta%2FArgumentStatementSupport.java;h=50cdc628f144308d3882d439b76d14337aa47dde;hb=e5e06d81bed0a7cb520e94a4b018d0e2bb7f0c62;hp=7b6812c4b1f55cba9d2d39fc6b22aa35b7367a27;hpb=dadc9aa0a7f3af000b4205f94cf86dba7e908d75;p=yangtools.git diff --git a/yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/meta/ArgumentStatementSupport.java b/yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/meta/ArgumentStatementSupport.java index 7b6812c4b1..50cdc628f1 100644 --- a/yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/meta/ArgumentStatementSupport.java +++ b/yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/meta/ArgumentStatementSupport.java @@ -31,7 +31,7 @@ public final class ArgumentStatementSupport SubstatementValidator.builder(YangStmtMapping.ARGUMENT).addOptional(YangStmtMapping.YIN_ELEMENT).build(); public ArgumentStatementSupport(final YangParserConfiguration config) { - super(YangStmtMapping.ARGUMENT, StatementPolicy.reject(), config); + super(YangStmtMapping.ARGUMENT, StatementPolicy.reject(), config, SUBSTATEMENT_VALIDATOR); } @Override @@ -39,11 +39,6 @@ public final class ArgumentStatementSupport return StmtContextUtils.parseIdentifier(ctx, value); } - @Override - protected SubstatementValidator getSubstatementValidator() { - return SUBSTATEMENT_VALIDATOR; - } - @Override protected ArgumentStatement createDeclared(final StmtContext ctx, final ImmutableList> substatements) {