easytests.common.validators.AbstractValidator   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 3
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
c 0
b 0
f 0
loc 3
rs 10
wmc 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
reject 0 2 ?
A reject(Errors,String,String) 0 2 1
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