Skip to content

Commit

Permalink
[Xamarin.Android.Tools.Bytecode] @not-null androidx.annotation.NonNull (
Browse files Browse the repository at this point in the history
#759)

Context: 18c29b7
Context: https://developer.android.com/reference/androidx/annotation/NonNull

Set `//*/@not-null` and/or `//*/@return-not-null` to `true` when
encountering the `androidx.annotation.NonNull` annotation.
  • Loading branch information
jpobst authored Dec 11, 2020
1 parent 7c1ad51 commit 2f62ffd
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@ static bool IsNotNullAnnotation (Annotation annotation)
// https://stackoverflow.com/questions/4963300/which-notnull-java-annotation-should-i-use
switch (annotation.Type) {
case "Landroid/annotation/NonNull;":
case "Landroidx/annotation/NonNull;":
case "Landroidx/annotation/RecentlyNonNull;":
case "Ljavax/validation/constraints/NotNull;":
case "Ledu/umd/cs/findbugs/annotations/NonNull;":
Expand Down

1 comment on commit 2f62ffd

@not-null
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🚀

Please sign in to comment.