Do not add nullability annotations to the methods of anonymous classes

Nullability annotations are useless for the methods of anonymous classes
due to their restricted scope.

^KT-62044: Fixed
This commit is contained in:
vladislav.grechko
2023-09-04 20:44:13 +02:00
committed by Space Team
parent ed247a3892
commit 29eb1c7a63
55 changed files with 903 additions and 688 deletions
@@ -30,7 +30,7 @@ final class Kt9320Kt$foo$w$1 {
inner (anonymous) class Kt9320Kt$foo$w$1
static method <clinit>(): void
method <init>(): void
public final @Ann @org.jetbrains.annotations.NotNull method invoke(@org.jetbrains.annotations.NotNull p0: My): java.lang.Integer
public final @Ann method invoke(p0: My): java.lang.Integer
public synthetic bridge method invoke(p0: java.lang.Object): java.lang.Object
}
@@ -30,7 +30,7 @@ final class LiteralsKt$foo$1 {
synthetic final field $arg: int
inner (anonymous) class LiteralsKt$foo$1
method <init>(p0: int): void
public final @FunAnn @org.jetbrains.annotations.NotNull method invoke(): java.lang.Integer
public final @FunAnn method invoke(): java.lang.Integer
public synthetic bridge method invoke(): java.lang.Object
}
@@ -41,7 +41,7 @@ final class LiteralsKt$foo$2 {
synthetic final field $arg: int
inner (anonymous) class LiteralsKt$foo$2
method <init>(p0: int): void
public final @org.jetbrains.annotations.NotNull method invoke(): java.lang.Integer
public final method invoke(): java.lang.Integer
public synthetic bridge method invoke(): java.lang.Object
}
@@ -61,7 +61,7 @@ final class LiteralsKt$foo$x$1 {
synthetic final field $arg: int
inner (anonymous) class LiteralsKt$foo$x$1
method <init>(p0: int): void
public final @FunAnn @org.jetbrains.annotations.NotNull method invoke(): java.lang.Integer
public final @FunAnn method invoke(): java.lang.Integer
public synthetic bridge method invoke(): java.lang.Object
}