From f963fc5f98f7c08788d35d6a3e2a75b78ae4e1be Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Thu, 5 May 2022 18:02:27 +0200 Subject: [PATCH] Check that nullable annotations are from org.springframework.lang Closes gh-28410 --- src/checkstyle/checkstyle-suppressions.xml | 148 +++++++++-------- src/checkstyle/checkstyle.xml | 180 ++++++++++----------- 2 files changed, 167 insertions(+), 161 deletions(-) diff --git a/src/checkstyle/checkstyle-suppressions.xml b/src/checkstyle/checkstyle-suppressions.xml index 6e27de7f0729..b24ed59d9cbb 100644 --- a/src/checkstyle/checkstyle-suppressions.xml +++ b/src/checkstyle/checkstyle-suppressions.xml @@ -3,114 +3,120 @@ - - - + + + - + - + + + + - - - - - + + + + + - + - - - - - - + + + + + + + + + - - - + + + - + - + - - - - - + + + + + - - - - - - - + + + + + + + - - + + - - - + + + - - - - + + + + - - - - - - - - + + + + + + + + - - - - - - - - + + + + + + + + - + - - - - - - + + + + + + - - - - - + + + + + diff --git a/src/checkstyle/checkstyle.xml b/src/checkstyle/checkstyle.xml index 3ea64aef027e..a8764a5474b9 100644 --- a/src/checkstyle/checkstyle.xml +++ b/src/checkstyle/checkstyle.xml @@ -8,7 +8,7 @@ - + @@ -19,125 +19,125 @@ - + - - + + + value="false"/> - + - + - + - - + + - - - + + + - + - - + + - - + + + value="Class name ''{0}'' must not end with ''Test'' (checked pattern ''{1}'')."/> - - - - - - + + + + + + - + - + - + - + - + - + - - + + - + - + - - + + - + - - - - - + + + + + - + + value="^reactor\.core\.support\.Assert,^org\.slf4j\.LoggerFactory,^(?!org\.springframework).*(NonNull|Nonnull|NonNullApi|NonNullFields|Nullable)$"/> - - + + - + + value="^org\.junit\.(Test|BeforeClass|AfterClass|Before|After|Ignore|FixMethodOrder|Rule|ClassRule|Assert|Assume)$,^org\.junit\.(Assert|Assume)\..+,^org\.junit\.(experimental|internal|matchers|rules|runner|runners|validator)\..+"/> - - + + - - + + - - + + - - + + @@ -155,7 +155,7 @@ - + @@ -172,74 +172,74 @@ - - - + + + - + - + value="Line has leading space characters; indentation should be performed with tabs only."/> + - - - + + + - + + value="assertThatExceptionOfType\((NullPointerException|IllegalArgumentException|IOException|IllegalStateException)\.class\)"/> - + value="Please use specialized AssertJ assertThat*Exception method."/> + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - + - - - + + +