mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Use the platform-specific line separator
See gh-11674
This commit is contained in:
parent
330881db78
commit
97a51ddcaa
@ -75,13 +75,13 @@ class DuplicateJsonObjectContextCustomizerFactory implements ContextCustomizerFa
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void logDuplicateJsonObjectsWarning(List<URL> jsonObjects) {
|
private void logDuplicateJsonObjectsWarning(List<URL> jsonObjects) {
|
||||||
StringBuilder message = new StringBuilder("\n\nFound multiple occurrences of"
|
StringBuilder message = new StringBuilder(String.format("%n%nFound multiple occurrences of"
|
||||||
+ " org.json.JSONObject on the class path:\n\n");
|
+ " org.json.JSONObject on the class path:%n%n"));
|
||||||
for (URL jsonObject : jsonObjects) {
|
for (URL jsonObject : jsonObjects) {
|
||||||
message.append("\t" + jsonObject + "\n");
|
message.append(String.format("\t%s%n", jsonObject));
|
||||||
}
|
}
|
||||||
message.append("\nYou may wish to exclude one of them to ensure"
|
message.append(String.format("%nYou may wish to exclude one of them to ensure"
|
||||||
+ " predictable runtime behaviour\n");
|
+ " predictable runtime behavior%n"));
|
||||||
this.logger.warn(message);
|
this.logger.warn(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user