[infrastructure] add external null-annotations (#8848)
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
This commit is contained in:
@@ -61,10 +61,12 @@ public class NumberValue extends Value {
|
||||
}
|
||||
|
||||
protected boolean checkConditions(BigDecimal newValue, DecimalType oldvalue) {
|
||||
BigDecimal min = this.min;
|
||||
if (min != null && newValue.compareTo(min) == -1) {
|
||||
logger.trace("Number not accepted as it is below the configured minimum");
|
||||
return false;
|
||||
}
|
||||
BigDecimal max = this.max;
|
||||
if (max != null && newValue.compareTo(max) == 1) {
|
||||
logger.trace("Number not accepted as it is above the configured maximum");
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user