Use the platform-specific line separator

Closes gh-11674
This commit is contained in:
Johnny Lim
2018-01-18 23:58:17 +09:00
committed by Stephane Nicoll
parent 34b19de68f
commit a0f6abffb6

View File

@@ -94,7 +94,8 @@ class InvalidConfigurationPropertyValueFailureAnalyzer
private void appendReason(StringBuilder message,
InvalidConfigurationPropertyValueException cause) {
if (StringUtils.hasText(cause.getReason())) {
message.append(" Validation failed for the following reason:\n\n");
message.append(String.format(" Validation failed for the following "
+ "reason:%n%n"));
message.append(cause.getReason());
}
else {
@@ -114,7 +115,7 @@ class InvalidConfigurationPropertyValueFailureAnalyzer
message.append("\t- In '" + other.getPropertySource() + "'");
message.append(" with the value '" + other.getValue() + "'");
other.appendOrigin(message);
message.append(".\n");
message.append(String.format(".%n"));
}
}
}