forked from phoedos/pmd
Allow null value for numeric properties
This commit is contained in:
@ -39,6 +39,9 @@ public class NumericPropertyModule<T extends Number> {
|
||||
|
||||
|
||||
public void checkNumber(T number) {
|
||||
if (number == null) {
|
||||
return; // TODO: remove me when you scrap StatisticalRule (see pull #727)
|
||||
}
|
||||
String error = valueErrorFor(number);
|
||||
if (error != null) {
|
||||
throw new IllegalArgumentException(error);
|
||||
|
Reference in New Issue
Block a user