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:
committed by
Space Team
parent
ed247a3892
commit
29eb1c7a63
+2
-2
@@ -4,7 +4,7 @@ public final class _2Kt$box$$inlined$complicatedCast$1 {
|
||||
enclosing method _2Kt.box()Ljava/lang/String;
|
||||
inner (anonymous) class _2Kt$box$$inlined$complicatedCast$1
|
||||
public method <init>(): void
|
||||
public final method f(@org.jetbrains.annotations.Nullable p0: java.lang.Object): java.lang.Object
|
||||
public final method f(p0: java.lang.Object): java.lang.Object
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
@@ -13,7 +13,7 @@ public final class _2Kt$complicatedCast$1$1 {
|
||||
enclosing method _2Kt.complicatedCast(Ljava/lang/Object;)Ljava/lang/Object;
|
||||
inner (anonymous) class _2Kt$complicatedCast$1$1
|
||||
public method <init>(): void
|
||||
public final method f(@org.jetbrains.annotations.Nullable p0: java.lang.Object): java.lang.Object
|
||||
public final method f(p0: java.lang.Object): java.lang.Object
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
@kotlin.Metadata
|
||||
public final class _2Kt$box$$inlined$foo$1 {
|
||||
// source: '1.kt'
|
||||
enclosing method _2Kt.box()Ljava/lang/String;
|
||||
public final static field INSTANCE: _2Kt$box$$inlined$foo$1
|
||||
inner (anonymous) class _2Kt$box$$inlined$foo$1
|
||||
static method <clinit>(): void
|
||||
public method <init>(): void
|
||||
public synthetic bridge method invoke(): java.lang.Object
|
||||
public final method invoke(): java.lang.String
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public final class _2Kt {
|
||||
// source: '2.kt'
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public final class test/_1Kt$foo$x$1 {
|
||||
// source: '1.kt'
|
||||
enclosing method test/_1Kt.foo()Ljava/lang/String;
|
||||
public final static field INSTANCE: test._1Kt$foo$x$1
|
||||
inner (anonymous) class test/_1Kt$foo$x$1
|
||||
static method <clinit>(): void
|
||||
public method <init>(): void
|
||||
public synthetic bridge method invoke(): java.lang.Object
|
||||
public final method invoke(): java.lang.String
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public final class test/_1Kt {
|
||||
// source: '1.kt'
|
||||
inner (anonymous) class test/_1Kt$foo$x$1
|
||||
public synthetic final static method bar(): java.lang.String
|
||||
public synthetic final static method foo(): java.lang.String
|
||||
}
|
||||
Reference in New Issue
Block a user