Skip to content

Commit

Permalink
Recognize org.jspecify.nullness.NonNull.
Browse files Browse the repository at this point in the history
See jspecify/jspecify@80c2887

This commit implements the main part of
#17,
but we'll still want samples / conformance tests to check that it
successfully did so!
  • Loading branch information
cpovirk committed Sep 16, 2022
1 parent b6e976c commit f910bb0
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1949,10 +1949,6 @@ private enum Present {
"reactor.util.annotation.Nullable",
}));

/*
* We haven't settled how much we support/encourage/discourage @NonNull annotations. But it
* would be shame to throw information away, so we recognize them.
*/
private static final List<String> NOT_NULL_ANNOTATIONS =
unmodifiableList(
asList(
Expand Down Expand Up @@ -1980,6 +1976,7 @@ private enum Present {
"org.eclipse.jgit.annotations.NonNull",
"org.eclipse.lsp4j.jsonrpc.validation.NonNull",
"org.jetbrains.annotations.NotNull",
"org.jspecify.nullness.NonNull",
"reactor.util.annotation.NonNull",
}));
}

0 comments on commit f910bb0

Please sign in to comment.