-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed as not planned
Closed as not planned
Copy link
Labels
Description
Issue #16981: Migrate to Java 21 - [noTrailingWhitespace] not aware of string block """
Migrate to Java 21#16981final String configComment = "/*\n"
@Test
public void testRequiredTokenIsEmptyIntArray() throws Exception {
final File file = new File(temporaryFolder, "file.java");
try (Writer writer = Files.newBufferedWriter(file.toPath(), StandardCharsets.UTF_8)) {
final String configComment = """
/*
com.puppycrawl.tools.checkstyle.TreeWalkerTest\
$RequiredTokenIsEmptyIntArray
*/
""";
writer.write(configComment);
}
final String[] expected = CommonUtil.EMPTY_STRING_ARRAY;
verifyWithInlineConfigParserTwice(file.getPath(), expected);
}