Skip to content

Commit 2b0a25a

Browse files
committed
GH-1624: set default preference of null analysis annotations to contain JSpecify variants
1 parent ee4b29a commit 2b0a25a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

eclipse-distribution/org.springframework.boot.ide.branding/plugin_customization.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,10 @@ org.eclipse.wst.validation/suspend=true
6262

6363
# Enable Semantic Tokens via LSP in Java Editor
6464
org.eclipse.lsp4e.jdt/semanticHighlightReconciler.java.enabled=true
65+
66+
# Configure secondary null annotation types for JDT null analysis
67+
# These settings allow the compiler to recognize null annotation types from Spring Framework and JSpecify
68+
# beyond the default org.eclipse.jdt.annotation types
69+
org.eclipse.jdt.core/org.eclipse.jdt.core.compiler.annotation.nullable.secondary=org.jspecify.annotations.Nullable,org.springframework.lang.Nullable
70+
org.eclipse.jdt.core/org.eclipse.jdt.core.compiler.annotation.nonnull.secondary=org.jspecify.annotations.NonNull,org.springframework.lang.NonNull
71+
org.eclipse.jdt.core/org.eclipse.jdt.core.compiler.annotation.nonnullbydefault.secondary=org.jspecify.annotations.NullMarked,org.springframework.lang.NonNullApi,org.springframework.lang.NonNullFields

0 commit comments

Comments
 (0)