Skip to content

Commit 2f62ffd

Browse files
authored
[Xamarin.Android.Tools.Bytecode] @not-null androidx.annotation.NonNull (#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.
1 parent 7c1ad51 commit 2f62ffd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Xamarin.Android.Tools.Bytecode/XmlClassDeclarationBuilder.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,7 @@ static bool IsNotNullAnnotation (Annotation annotation)
464464
// https://stackoverflow.com/questions/4963300/which-notnull-java-annotation-should-i-use
465465
switch (annotation.Type) {
466466
case "Landroid/annotation/NonNull;":
467+
case "Landroidx/annotation/NonNull;":
467468
case "Landroidx/annotation/RecentlyNonNull;":
468469
case "Ljavax/validation/constraints/NotNull;":
469470
case "Ledu/umd/cs/findbugs/annotations/NonNull;":

0 commit comments

Comments
 (0)