improve the design of the validation error list

This commit is contained in:
Andreas Billmann
2015-12-18 01:00:18 +01:00
parent a5435c6b5f
commit ee94a5904e
2 changed files with 22 additions and 1 deletions

View File

@@ -57,7 +57,15 @@ public class I18nValidationUtil {
}
}
return message.toString();
if (!validationMessages.isEmpty()) {
return cutOffLastLineBreak(message.toString());
}
return "";
}
private static String cutOffLastLineBreak(String message) {
return message.substring(0, message.length()-1);
}
}