Code Review
/
yangtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Eliminate superfluous onFullDefinitionDeclared overrides
[yangtools.git]
/
yang
/
yang-parser-impl
/
src
/
main
/
java
/
org
/
opendaylight
/
yangtools
/
yang
/
parser
/
stmt
/
rfc6020
/
IfFeatureStatementImpl.java
diff --git
a/yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/IfFeatureStatementImpl.java
b/yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/IfFeatureStatementImpl.java
index 76ad6c3cfc408c24fe93aaffafefe9b59341d608..e0d4e4e30251e32cb6c7a5e27fadce994edaa40a 100644
(file)
--- a/
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/IfFeatureStatementImpl.java
+++ b/
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/IfFeatureStatementImpl.java
@@
-25,7
+25,7
@@
public class IfFeatureStatementImpl extends AbstractDeclaredStatement<QName>
.build();
protected IfFeatureStatementImpl(
.build();
protected IfFeatureStatementImpl(
- StmtContext<QName, IfFeatureStatement, ?> context) {
+
final
StmtContext<QName, IfFeatureStatement, ?> context) {
super(context);
}
super(context);
}
@@
-38,29
+38,22
@@
public class IfFeatureStatementImpl extends AbstractDeclaredStatement<QName>
}
@Override
}
@Override
- public QName parseArgumentValue(
StmtContext<?, ?, ?> ctx,
String value) {
+ public QName parseArgumentValue(
final StmtContext<?, ?, ?> ctx, final
String value) {
return Utils.qNameFromArgument(ctx, value);
}
@Override
public IfFeatureStatement createDeclared(
return Utils.qNameFromArgument(ctx, value);
}
@Override
public IfFeatureStatement createDeclared(
- StmtContext<QName, IfFeatureStatement, ?> ctx) {
+
final
StmtContext<QName, IfFeatureStatement, ?> ctx) {
return new IfFeatureStatementImpl(ctx);
}
@Override
public EffectiveStatement<QName, IfFeatureStatement> createEffective(
return new IfFeatureStatementImpl(ctx);
}
@Override
public EffectiveStatement<QName, IfFeatureStatement> createEffective(
- StmtContext<QName, IfFeatureStatement, EffectiveStatement<QName, IfFeatureStatement>> ctx) {
+
final
StmtContext<QName, IfFeatureStatement, EffectiveStatement<QName, IfFeatureStatement>> ctx) {
return new IfFeatureEffectiveStatementImpl(ctx);
}
return new IfFeatureEffectiveStatementImpl(ctx);
}
- @Override
- public void onFullDefinitionDeclared(StmtContext.Mutable<QName, IfFeatureStatement,
- EffectiveStatement<QName, IfFeatureStatement>> stmt) {
- super.onFullDefinitionDeclared(stmt);
- getSubstatementValidator().validate(stmt);
- }
-
@Override
protected SubstatementValidator getSubstatementValidator() {
return SUBSTATEMENT_VALIDATOR;
@Override
protected SubstatementValidator getSubstatementValidator() {
return SUBSTATEMENT_VALIDATOR;