reject
last analyzed

Size

Total Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
c 0
b 0
f 0
loc 2
1
package easytests.common.validators;
2
3
import org.springframework.validation.Errors;
4
import org.springframework.validation.Validator;
5
6
7
/**
8
 * @author malinink
9
 */
10
public abstract class AbstractValidator implements Validator {
0 ignored issues
show
Best Practice introduced by
This looks like a utility class. You may want to hide the implict public constructor behind a private one, so the class cannot be instantiated,
Loading history...
11
    public static void reject(Errors errors, String fieldName, String message) {
12
        errors.rejectValue(fieldName, null, null, message);
13
    }
14
}
15