File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
src/Xamarin.Android.Tools.Bytecode Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -499,17 +499,23 @@ static bool IsNotNullAnnotation (Annotation annotation)
499
499
{
500
500
// Android ones plus the list from here:
501
501
// https://stackoverflow.com/questions/4963300/which-notnull-java-annotation-should-i-use
502
+ // https://github.com/JetBrains/kotlin/blob/03360c0108797b2a98b6608e2bddfacd5f4e87ce/core/compiler.common.jvm/src/org/jetbrains/kotlin/load/java/JvmAnnotationNames.kt#L64-L91
502
503
switch ( annotation . Type ) {
503
504
case "Landroid/annotation/NonNull;" :
505
+ case "Landroid/support/annotation/NonNull;" :
504
506
case "Landroidx/annotation/NonNull;" :
505
507
case "Landroidx/annotation/RecentlyNonNull;" :
506
- case "Ljavax/validation/constraints/NotNull ;" :
508
+ case "Lcom/android/annotations/NonNull ;" :
507
509
case "Ledu/umd/cs/findbugs/annotations/NonNull;" :
510
+ case "Ljakarta/annotation/Nonnull;" :
508
511
case "Ljavax/annotation/Nonnull;" :
509
- case "Lorg/jetbrains/annotations /NotNull;" :
512
+ case "Ljavax/validation/constraints /NotNull;" :
510
513
case "Llombok/NonNull;" :
511
- case "Landroid/support/annotation/NonNull;" :
514
+ case "Lorg/checkerframework/checker/nullness/compatqual/NonNullDecl;" :
515
+ case "Lorg/checkerframework/checker/nullness/qual/NonNull;" :
512
516
case "Lorg/eclipse/jdt/annotation/NonNull;" :
517
+ case "Lorg/jetbrains/annotations/NotNull;" :
518
+ case "Lorg/jspecify/annotations/NonNull;" :
513
519
return true ;
514
520
}
515
521
You can’t perform that action at this time.
0 commit comments