Disallow @org.jetbrains.annotations.Nullable imports

This commit adds a checkstyle rule that rejects
`@org.jetbrains.annotations.Nullable` imports in the source code.

See gh-35114
This commit is contained in:
Brian Clozel
2025-06-25 20:43:48 +02:00
parent 1a046f9cec
commit 6e6280a42c
+1 -1
View File
@@ -107,7 +107,7 @@
<property name="id" value="bannedImports"/>
<property name="regexp" value="true"/>
<property name="illegalClasses"
value="^reactor\.core\.support\.Assert,^org\.slf4j\.LoggerFactory,^(?!org\.jspecify|\.annotations).*(NonNull|Nullable)$"/>
value="^reactor\.core\.support\.Assert,^org\.slf4j\.LoggerFactory,^(?!org\.jspecify|\.annotations).*(NonNull|Nullable),^org\.jetbrains\.annotations\.Nullable$"/>
</module>
<module name="com.puppycrawl.tools.checkstyle.checks.imports.IllegalImportCheck">
<property name="id" value="bannedJUnit3Imports"/>