Skip to content

Commit c826830

Browse files
committed
Update checkstyle suppressions to work with non-English locales
Closes gh-48686
1 parent 72aea01 commit c826830

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

config/checkstyle/checkstyle-suppressions.xml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,14 @@
7575
<suppress files="ItemMetadataAssert\.java" id="staticAssertJ"/>
7676
<suppress files="SpringApplicationShutdownHookInstance\.java" id="staticAssertJ"/>
7777
<!-- jspecify: https://github.com/spring-io/spring-javaformat/issues/454 -->
78-
<suppress files="PemPrivateKeyParser\.java" checks="NoWhitespaceBefore" message="'...' is preceded with whitespace"/>
79-
<suppress files="Bindable\.java" checks="NoWhitespaceBefore" message="'...' is preceded with whitespace"/>
80-
<suppress files="LambdaSafe\.java" checks="NoWhitespaceBefore" message="'...' is preceded with whitespace"/>
81-
<suppress files="ConditionMessage\.java" checks="NoWhitespaceBefore" message="'...' is preceded with whitespace"/>
82-
<suppress files="EntityManagerFactoryBuilder\.java" checks="NoWhitespaceBefore" message="'...' is preceded with whitespace"/>
83-
<suppress files="DockerApi\.java" checks="NoWhitespaceBefore" message="'...' is preceded with whitespace"/>
84-
<suppress files="InvocationContext\.java" checks="NoWhitespaceBefore" message="'...' is preceded with whitespace"/>
78+
<!-- We can't use full "'...' is preceded with whitespace" as it fails on other locales -->
79+
<suppress files="PemPrivateKeyParser\.java" checks="NoWhitespaceBefore" message="'...'"/>
80+
<suppress files="Bindable\.java" checks="NoWhitespaceBefore" message="'...'"/>
81+
<suppress files="LambdaSafe\.java" checks="NoWhitespaceBefore" message="'...'"/>
82+
<suppress files="ConditionMessage\.java" checks="NoWhitespaceBefore" message="'...'"/>
83+
<suppress files="EntityManagerFactoryBuilder\.java" checks="NoWhitespaceBefore" message="'...'"/>
84+
<suppress files="DockerApi\.java" checks="NoWhitespaceBefore" message="'...'"/>
85+
<suppress files="InvocationContext\.java" checks="NoWhitespaceBefore" message="'...'"/>
8586
<!-- https://github.com/apache/logging-log4j2/issues/2769#issuecomment-3049020222 -->
8687
<suppress files="SpringProfileArbiter\.java" checks="SpringMethodVisibility"/>
8788
<suppress files="StructuredLogLayout\.java" checks="SpringMethodVisibility"/>

0 commit comments

Comments
 (0)