can be final
This commit is contained in:
parent
dc08da121e
commit
67a7817e77
@ -37,7 +37,7 @@ public class ValidationDelegate<T extends ValueObject> {
|
||||
if (rwPolicy != ReadWritePolicy.READWRITE && rwPolicy != ReadWritePolicy.WRITEONCE) {
|
||||
errors.add(UserError.MSG_NO_FIELD_WRITEACCESS, p.getName());
|
||||
} else {
|
||||
Set<ConstraintViolation<T>> validateResults = vf.getValidator().validate(prototype);
|
||||
final Set<ConstraintViolation<T>> validateResults = vf.getValidator().validate(prototype);
|
||||
if (!validateResults.isEmpty()) {
|
||||
for (ConstraintViolation<T> violation: validateResults) {
|
||||
errors.add(UserError.MSG_FIELD_DOESNOT_VALIDATE, violation.getMessage(), violation.getPropertyPath().toString(), violation.getInvalidValue().toString());
|
||||
|
Loading…
Reference in New Issue
Block a user