fix: improved string concatenation in ValidationUtility

This commit is contained in:
Yannik Bretschneider 2021-06-05 16:10:23 +02:00
parent 08707e7e73
commit b8996ade85

View File

@ -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(", ")));
} }
} }