Skip to content

Commit

Permalink
Fix Android annotation name from "@RecentlyNotNull" to "`@RecentlyN…
Browse files Browse the repository at this point in the history
…onNull`."

I'm not sure what the _best_ citation for the proper spelling is, but maybe see [this source file](https://cs.android.com/android-studio/kotlin/+/master:third-party/annotations/androidx/annotation/RecentlyNonNull.java)?

PiperOrigin-RevId: 525257939
  • Loading branch information
cpovirk authored and Error Prone Team committed Apr 18, 2023
1 parent 5e8fb0a commit 42b6409
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class NullnessAnnotations {
private static final Predicate<String> ANNOTATION_RELEVANT_TO_NULLNESS =
Pattern.compile(
".*\\b("
+ "(Recently)?NotNull|NonNull(Decl|Type)?|Nonnull|"
+ "(Recently)?NonNull(Decl|Type)?|NotNull|Nonnull|"
+ "(Recently)?Nullable(Decl|Type)?|CheckForNull|PolyNull|MonotonicNonNull(Decl)?|"
+ "ProtoMethodMayReturnNull|ProtoMethodAcceptsNullParameter|"
+ "ProtoPassThroughNullness"
Expand Down

0 comments on commit 42b6409

Please sign in to comment.