Skip to content

Commit 6e6280a

Browse files
committed
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
1 parent 1a046f9 commit 6e6280a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/checkstyle/checkstyle.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
<property name="id" value="bannedImports"/>
108108
<property name="regexp" value="true"/>
109109
<property name="illegalClasses"
110-
value="^reactor\.core\.support\.Assert,^org\.slf4j\.LoggerFactory,^(?!org\.jspecify|\.annotations).*(NonNull|Nullable)$"/>
110+
value="^reactor\.core\.support\.Assert,^org\.slf4j\.LoggerFactory,^(?!org\.jspecify|\.annotations).*(NonNull|Nullable),^org\.jetbrains\.annotations\.Nullable$"/>
111111
</module>
112112
<module name="com.puppycrawl.tools.checkstyle.checks.imports.IllegalImportCheck">
113113
<property name="id" value="bannedJUnit3Imports"/>

0 commit comments

Comments
 (0)