Skip to content

Commit

Permalink
Recognize new JSpecify package name
Browse files Browse the repository at this point in the history
So that its `@Nullable` annotation is treated as a type-use annotation and formatted accordingly. See jspecify/jspecify#260.

Fixes #869

COPYBARA_INTEGRATE_REVIEW=#869 from PicnicSupermarket:improvement/support-new-jpecify-package-name 7a0dc20
PiperOrigin-RevId: 495701635
  • Loading branch information
Stephan202 authored and google-java-format Team committed Dec 15, 2022
1 parent 8afb866 commit d9ddb94
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -285,6 +285,7 @@ private static ImmutableSetMultimap<String, String> typeAnnotations() {
ImmutableSetMultimap.Builder<String, String> result = ImmutableSetMultimap.builder();
for (String annotation :
ImmutableList.of(
"org.jspecify.annotations.Nullable",
"org.jspecify.nullness.Nullable",
"org.checkerframework.checker.nullness.qual.Nullable")) {
String simpleName = annotation.substring(annotation.lastIndexOf('.') + 1);
Expand Down

0 comments on commit d9ddb94

Please sign in to comment.