We are just duplicating the argument field here, let's get rid
of this.
JIRA: YANGTOOLS-1065
Change-Id: Id8a5855e352cb032b88e9af0ffb30cb64e3653ce
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit
459e75746b61004611bb6b1b34eb9dff0ad391a6)
final class DeviateEffectiveStatementImpl extends DeclaredEffectiveStatementBase<DeviateKind, DeviateStatement>
implements DeviateDefinition, DeviateEffectiveStatement {
final class DeviateEffectiveStatementImpl extends DeclaredEffectiveStatementBase<DeviateKind, DeviateStatement>
implements DeviateDefinition, DeviateEffectiveStatement {
- private final DeviateKind deviateType;
private final String deviatedDefault;
private final Integer deviatedMaxElements;
private final Integer deviatedMinElements;
private final String deviatedDefault;
private final Integer deviatedMaxElements;
private final Integer deviatedMinElements;
DeviateEffectiveStatementImpl(final StmtContext<DeviateKind, DeviateStatement, ?> ctx) {
super(ctx);
DeviateEffectiveStatementImpl(final StmtContext<DeviateKind, DeviateStatement, ?> ctx) {
super(ctx);
- deviateType = argument();
deviatedConfig = OptionalBoolean.ofNullable(findFirstEffectiveSubstatementArgument(
ConfigEffectiveStatement.class).orElse(null));
deviatedMandatory = OptionalBoolean.ofNullable(findFirstEffectiveSubstatementArgument(
deviatedConfig = OptionalBoolean.ofNullable(findFirstEffectiveSubstatementArgument(
ConfigEffectiveStatement.class).orElse(null));
deviatedMandatory = OptionalBoolean.ofNullable(findFirstEffectiveSubstatementArgument(
@Override
public DeviateKind getDeviateType() {
@Override
public DeviateKind getDeviateType() {