removed the special treatment of NotEmptyValidation

This commit is contained in:
2016-08-09 17:25:05 +02:00
parent 3ebf78805c
commit b79a20201e
14 changed files with 31 additions and 16 deletions

View File

@@ -86,13 +86,8 @@ public class Validator {
Map<Validation.Type, Validation> validationMap = columnValidationMap.get(column);
if (validationMap != null) {
for (Validation validation: validationMap.values()) {
if (validation.getType() == Validation.Type.NOT_EMPTY) {
if (validation.canBeChecked(value)) {
validation.check(row, value, error);
} else {
if (value != null && !value.isEmpty()) {
validation.check(row, value, error);
}
}
}
}