We have a slight inconsistency here, as we are peeling buildType()
implementation, without also propagaing @NonNull. Fix that up.
Change-Id: I7b2e79f28f02bc81a8d06a101ef3e4bd34b9848b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
touch();
}
- abstract T buildType(LengthConstraint constraint);
+ abstract @NonNull T buildType(LengthConstraint constraint);
@Override
final T buildType() {
import static java.util.Objects.requireNonNull;
+import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yangtools.yang.model.api.SchemaPath;
import org.opendaylight.yangtools.yang.model.api.type.RangeConstraint;
import org.opendaylight.yangtools.yang.model.api.type.RangeRestrictedTypeDefinition;
return buildType(calculateRangeConstraint(getBaseType().getRangeConstraint().get()));
}
- abstract T buildType(RangeConstraint<N> rangeConstraints);
+ abstract @NonNull T buildType(RangeConstraint<N> rangeConstraints);
}