From 957be3e0ab1710b2a938ebe3d7f1c0fddb132966 Mon Sep 17 00:00:00 2001 From: Alex Abashev Date: Sat, 31 Oct 2026 22:38:39 +0300 Subject: [PATCH] Expect a joined detail message in commentAfterOpeningDelimiter-assert The case came with #175 and ends in the detail message "x below " + "y": two string literals on one line with no comment between them. #176 joins such literals, so the formatter now writes "x below y", and since both were merged every build job of 21.X.X fails on that line. Each had passed on its own, because #176 was tested without the case. The expected output now has the joined literal, as #176 did for the cases of NON-NLS and palantir-10; the input keeps the two literals. Tests on JDK 21: FormatterCasesTest 915 cases, 1482 tests in all modules, none failing. --- .../test-cases/commentAfterOpeningDelimiter-assert.case | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/open-java-format/src/test/resources/test-cases/commentAfterOpeningDelimiter-assert.case b/open-java-format/src/test/resources/test-cases/commentAfterOpeningDelimiter-assert.case index 45846092b..0dabc3dcc 100644 --- a/open-java-format/src/test/resources/test-cases/commentAfterOpeningDelimiter-assert.case +++ b/open-java-format/src/test/resources/test-cases/commentAfterOpeningDelimiter-assert.case @@ -30,6 +30,6 @@ class T { assert /* why */ x < y - : "x below " + "y"; + : "x below y"; } }