From 7131a15140cc19f468f678726344d0f0ad4a4e6f Mon Sep 17 00:00:00 2001 From: Brian Clozel Date: Wed, 21 May 2025 09:31:30 +0200 Subject: [PATCH] Suppress AnnotationLocation checkstyle rule This rule flags valid usages because it conflates annotated methods and annotated return types, considering that the `@Nullable` annotation should be on its own line. For example, the following fails: ``` @Override @Nullable String getName() { ``` See gh-1132 --- src/checkstyle/checkstyle-suppressions.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/checkstyle/checkstyle-suppressions.xml b/src/checkstyle/checkstyle-suppressions.xml index b2901c7c..421876e7 100644 --- a/src/checkstyle/checkstyle-suppressions.xml +++ b/src/checkstyle/checkstyle-suppressions.xml @@ -8,6 +8,8 @@ + +