Skip to content

Commit c57d72c

Browse files
martinlippertfbricon
authored andcommitted
Add JSpecify annotations to classpath storage to enable automatic null analysis config for JSpecify
1 parent de6da1b commit c57d72c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/preferences

org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/preferences/Preferences.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,6 +1002,10 @@ private static void initializeNullAnalysisClasspathStorage() {
10021002

10031003
nonnullClasspathStorage.put("org.jetbrains.annotations.NotNull", getClasspathSubStringFromArtifact("org.jetbrains:annotations"));
10041004
nullableClasspathStorage.put("org.jetbrains.annotations.Nullable", getClasspathSubStringFromArtifact("org.jetbrains:annotations"));
1005+
1006+
nonnullClasspathStorage.put("org.jspecify.annotations.NonNull", getClasspathSubStringFromArtifact("org.jspecify:jspecify"));
1007+
nullableClasspathStorage.put("org.jspecify.annotations.Nullable", getClasspathSubStringFromArtifact("org.jspecify:jspecify"));
1008+
nonnullbydefaultClasspathStorage.put("org.jspecify.annotations.NullMarked", getClasspathSubStringFromArtifact("org.jspecify:jspecify"));
10051009
}
10061010

10071011
private static List<String> getClasspathSubStringFromArtifact(String artifact) {

0 commit comments

Comments
 (0)