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
This commit is contained in:
Brian Clozel
2025-05-21 09:31:30 +02:00
parent d7db1a065b
commit 7131a15140

View File

@@ -8,6 +8,8 @@
<!-- main -->
<suppress files="[\\/]src[\\/]main[\\/]java[\\/]" checks="SpringMethodVisibility" />
<!-- Ignore this check for @Nullable annotations -->
<suppress files="[\\/]src[\\/]main[\\/]java[\\/]" checks="AnnotationLocation" />
<!-- tests -->
<suppress files="[\\/]src[\\/]testFixtures[\\/]java[\\/]" checks="JavadocPackage|SpringJavadoc" />