Skip to content

Commit 99f4812

Browse files
martinlippertfbricon
authored andcommitted
add JSpecify annotations for null analysis
1 parent 294ffef commit 99f4812

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,8 @@
859859
"default": [
860860
"javax.annotation.Nonnull",
861861
"org.eclipse.jdt.annotation.NonNull",
862-
"org.springframework.lang.NonNull"
862+
"org.springframework.lang.NonNull",
863+
"org.jspecify.annotations.NonNull"
863864
],
864865
"markdownDescription": "Specify the Nonnull annotation types to be used for null analysis. If more than one annotation is specified, then the topmost annotation will be used first if it exists in project dependencies. This setting will be ignored if `java.compile.nullAnalysis.mode` is set to `disabled`",
865866
"scope": "window"
@@ -869,7 +870,8 @@
869870
"default": [
870871
"javax.annotation.Nullable",
871872
"org.eclipse.jdt.annotation.Nullable",
872-
"org.springframework.lang.Nullable"
873+
"org.springframework.lang.Nullable",
874+
"org.jspecify.annotations.Nullable"
873875
],
874876
"markdownDescription": "Specify the Nullable annotation types to be used for null analysis. If more than one annotation is specified, then the topmost annotation will be used first if it exists in project dependencies. This setting will be ignored if `java.compile.nullAnalysis.mode` is set to `disabled`",
875877
"scope": "window"
@@ -879,7 +881,8 @@
879881
"default": [
880882
"javax.annotation.ParametersAreNonnullByDefault",
881883
"org.eclipse.jdt.annotation.NonNullByDefault",
882-
"org.springframework.lang.NonNullApi"
884+
"org.springframework.lang.NonNullApi",
885+
"org.jspecify.annotations.NullMarked"
883886
],
884887
"markdownDescription": "Specify the NonNullByDefault annotation types to be used for null analysis. If more than one annotation is specified, then the topmost annotation will be used first if it exists in project dependencies. This setting will be ignored if `java.compile.nullAnalysis.mode` is set to `disabled`",
885888
"scope": "window"

0 commit comments

Comments
 (0)