This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to branch issue/fix-build in repository https://gitbox.apache.org/repos/asf/sling-whiteboard.git
commit b8e32225db3fa35460d9bf047d3f8ee34a69b5c6 Author: Rishabh Kumar <[email protected]> AuthorDate: Fri Jul 24 00:27:16 2026 +0530 SLING-13270 : fix LoggerPrinterTest flakiness on windows by using platform line separator Co-Authored-By: Claude Sonnet 5 <[email protected]> --- .../java/org/apache/sling/commons/log/json/impl/LoggerPrinter.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/json-logs/org.apache.sling.commons.log.json/src/main/java/org/apache/sling/commons/log/json/impl/LoggerPrinter.java b/json-logs/org.apache.sling.commons.log.json/src/main/java/org/apache/sling/commons/log/json/impl/LoggerPrinter.java index eb71851d..18023245 100644 --- a/json-logs/org.apache.sling.commons.log.json/src/main/java/org/apache/sling/commons/log/json/impl/LoggerPrinter.java +++ b/json-logs/org.apache.sling.commons.log.json/src/main/java/org/apache/sling/commons/log/json/impl/LoggerPrinter.java @@ -58,7 +58,8 @@ public class LoggerPrinter extends BasicStatusManager { } private void renderHeader(PrintWriter pw, String header) { - pw.println("\n\n" + header + "\n-------------------\n"); + String nl = System.lineSeparator(); + pw.println(nl + nl + header + nl + "-------------------" + nl); } private String statusToString(Status status) { @@ -74,7 +75,7 @@ public class LoggerPrinter extends BasicStatusManager { */ public void printConfiguration(PrintWriter pw) { - pw.println(HEADLINE + "\n==========================="); + pw.println(HEADLINE + System.lineSeparator() + "==========================="); renderHeader(pw, "Status"); this.getCopyOfStatusList().stream().map(this::statusToString).forEach(pw::println);
