mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
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:
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user