Skip to content

Commit 97a51dd

Browse files
izeyesnicoll
authored andcommitted
Use the platform-specific line separator
See gh-11674
1 parent 330881d commit 97a51dd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

spring-boot-test/src/main/java/org/springframework/boot/test/json/DuplicateJsonObjectContextCustomizerFactory.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ private List<URL> findJsonObjects() {
7575
}
7676

7777
private void logDuplicateJsonObjectsWarning(List<URL> jsonObjects) {
78-
StringBuilder message = new StringBuilder("\n\nFound multiple occurrences of"
79-
+ " org.json.JSONObject on the class path:\n\n");
78+
StringBuilder message = new StringBuilder(String.format("%n%nFound multiple occurrences of"
79+
+ " org.json.JSONObject on the class path:%n%n"));
8080
for (URL jsonObject : jsonObjects) {
81-
message.append("\t" + jsonObject + "\n");
81+
message.append(String.format("\t%s%n", jsonObject));
8282
}
83-
message.append("\nYou may wish to exclude one of them to ensure"
84-
+ " predictable runtime behaviour\n");
83+
message.append(String.format("%nYou may wish to exclude one of them to ensure"
84+
+ " predictable runtime behavior%n"));
8585
this.logger.warn(message);
8686
}
8787

0 commit comments

Comments
 (0)