fix: improved string concatenation in ValidationUtility
This commit is contained in:
parent
08707e7e73
commit
b8996ade85
@ -31,7 +31,7 @@ public class ValidationUtility {
|
|||||||
if (violations.isEmpty()) return Optional.empty();
|
if (violations.isEmpty()) return Optional.empty();
|
||||||
else {
|
else {
|
||||||
return Optional.of(violations.stream()
|
return Optional.of(violations.stream()
|
||||||
.map(violation -> violation.getPropertyPath() + ": " + violation.getMessage())
|
.map(violation -> violation.getPropertyPath() + " " + violation.getMessage())
|
||||||
.collect(Collectors.joining(", ")));
|
.collect(Collectors.joining(", ")));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user