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
@@ -7,11 +7,11 @@ public interface<<T:Ljava/lang/Object;>Ljava/lang/Object;> Sam {
|
||||
@kotlin.Metadata
|
||||
synthetic final class<null> TKt$genericSam$1 {
|
||||
// source: 't.kt'
|
||||
public final @org.jetbrains.annotations.NotNull <()Lkotlin/Function<*>;> method getFunctionDelegate(): kotlin.Function
|
||||
public final <()Lkotlin/Function<*>;> method getFunctionDelegate(): kotlin.Function
|
||||
public final <()TT;> method get(): java.lang.Object
|
||||
static <null> method <clinit>(): void
|
||||
<null> method <init>(): void
|
||||
public final <null> method equals(@org.jetbrains.annotations.Nullable p0: java.lang.Object): boolean
|
||||
public final <null> method equals(p0: java.lang.Object): boolean
|
||||
public final <null> method hashCode(): int
|
||||
enclosing method TKt.genericSam()Ljava/lang/Object;
|
||||
public final static field <null> INSTANCE: TKt$genericSam$1
|
||||
|
||||
+3
-3
@@ -7,12 +7,12 @@ public interface<<T:Ljava/lang/Object;>Ljava/lang/Object;> Sam {
|
||||
@kotlin.Metadata
|
||||
synthetic final class<null> TKt$specializedSam$1 {
|
||||
// source: 't.kt'
|
||||
public final @org.jetbrains.annotations.NotNull <()Lkotlin/Function<*>;> method getFunctionDelegate(): kotlin.Function
|
||||
public final <()Lkotlin/Function<*>;> method getFunctionDelegate(): kotlin.Function
|
||||
static <null> method <clinit>(): void
|
||||
<null> method <init>(): void
|
||||
public final <null> method equals(@org.jetbrains.annotations.Nullable p0: java.lang.Object): boolean
|
||||
public final <null> method equals(p0: java.lang.Object): boolean
|
||||
public synthetic bridge <null> method get(): java.lang.Object
|
||||
public final @org.jetbrains.annotations.NotNull <null> method get(): java.lang.String
|
||||
public final <null> method get(): java.lang.String
|
||||
public final <null> method hashCode(): int
|
||||
enclosing method TKt.specializedSam()Ljava/lang/String;
|
||||
public final static field <null> INSTANCE: TKt$specializedSam$1
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ synthetic final class<null> TKt$specializedSam$1 {
|
||||
static <null> method <clinit>(): void
|
||||
<null> method <init>(): void
|
||||
public synthetic bridge <null> method get(): java.lang.Object
|
||||
public final @org.jetbrains.annotations.NotNull <null> method get(): java.lang.String
|
||||
public final <null> method get(): java.lang.String
|
||||
enclosing method TKt.specializedSam()Ljava/lang/String;
|
||||
public final static field <null> INSTANCE: TKt$specializedSam$1
|
||||
inner (anonymous) class TKt$specializedSam$1
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ final class<<T:Ljava/lang/Object;>Ljava/lang/Object;LSam;> TKt$specializedSam$1
|
||||
// source: 't.kt'
|
||||
<(Lkotlin/jvm/functions/Function0<Ljava/lang/String;>;)V> method <init>(p0: kotlin.jvm.functions.Function0): void
|
||||
public synthetic bridge <null> method get(): java.lang.Object
|
||||
public final @org.jetbrains.annotations.NotNull <null> method get(): java.lang.String
|
||||
public final <null> method get(): java.lang.String
|
||||
enclosing method TKt.specializedSam(Lkotlin/jvm/functions/Function0;)Ljava/lang/String;
|
||||
synthetic final field <Lkotlin/jvm/functions/Function0<Ljava/lang/String;>;> $f: kotlin.jvm.functions.Function0
|
||||
inner (anonymous) class TKt$specializedSam$1
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ final class NonApproxToValidSupertypeKt$test$1 {
|
||||
inner (anonymous) class NonApproxToValidSupertypeKt$test$1
|
||||
static method <clinit>(): void
|
||||
method <init>(): void
|
||||
public final method accept(@org.jetbrains.annotations.NotNull p0: X): void
|
||||
public final method accept(p0: X): void
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
@kotlin.Metadata
|
||||
public interface A {
|
||||
// source: 'nonApproxToValidSupertype.kt'
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public interface B {
|
||||
// source: 'nonApproxToValidSupertype.kt'
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public final class G {
|
||||
// source: 'nonApproxToValidSupertype.kt'
|
||||
public method <init>(): void
|
||||
public final method check(@org.jetbrains.annotations.NotNull p0: IFoo): void
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public interface IFoo {
|
||||
// source: 'nonApproxToValidSupertype.kt'
|
||||
public abstract method accept(@org.jetbrains.annotations.NotNull p0: X): void
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
final class NonApproxToValidSupertypeKt$test$1 {
|
||||
// source: 'nonApproxToValidSupertype.kt'
|
||||
enclosing method NonApproxToValidSupertypeKt.test()V
|
||||
public final static field INSTANCE: NonApproxToValidSupertypeKt$test$1
|
||||
inner (anonymous) class NonApproxToValidSupertypeKt$test$1
|
||||
static method <clinit>(): void
|
||||
method <init>(): void
|
||||
public synthetic bridge method accept(p0: X): void
|
||||
public final method accept(p0: java.lang.Object): void
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public final class NonApproxToValidSupertypeKt {
|
||||
// source: 'nonApproxToValidSupertype.kt'
|
||||
inner (anonymous) class NonApproxToValidSupertypeKt$test$1
|
||||
public final static method sel(p0: java.lang.Object, p1: java.lang.Object): java.lang.Object
|
||||
public final static method test(): void
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public interface X {
|
||||
// source: 'nonApproxToValidSupertype.kt'
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public interface Z {
|
||||
// source: 'nonApproxToValidSupertype.kt'
|
||||
}
|
||||
+1
-1
@@ -29,8 +29,8 @@ final class NonApproxToValidSupertype2Kt$test$1 {
|
||||
inner (anonymous) class NonApproxToValidSupertype2Kt$test$1
|
||||
static method <clinit>(): void
|
||||
method <init>(): void
|
||||
public final method accept(@org.jetbrains.annotations.NotNull p0: X): void
|
||||
public synthetic bridge method accept(p0: U): void
|
||||
public final method accept(p0: X): void
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
|
||||
+62
@@ -0,0 +1,62 @@
|
||||
@kotlin.Metadata
|
||||
public interface A {
|
||||
// source: 'nonApproxToValidSupertype2.kt'
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public interface B {
|
||||
// source: 'nonApproxToValidSupertype2.kt'
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public final class G {
|
||||
// source: 'nonApproxToValidSupertype2.kt'
|
||||
public method <init>(): void
|
||||
public final method check(@org.jetbrains.annotations.NotNull p0: IFoo): void
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public interface IFoo {
|
||||
// source: 'nonApproxToValidSupertype2.kt'
|
||||
public abstract method accept(@org.jetbrains.annotations.NotNull p0: U): void
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
final class NonApproxToValidSupertype2Kt$test$1 {
|
||||
// source: 'nonApproxToValidSupertype2.kt'
|
||||
enclosing method NonApproxToValidSupertype2Kt.test()V
|
||||
public final static field INSTANCE: NonApproxToValidSupertype2Kt$test$1
|
||||
inner (anonymous) class NonApproxToValidSupertype2Kt$test$1
|
||||
static method <clinit>(): void
|
||||
method <init>(): void
|
||||
public synthetic bridge method accept(p0: U): void
|
||||
public final method accept(p0: java.lang.Object): void
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public final class NonApproxToValidSupertype2Kt {
|
||||
// source: 'nonApproxToValidSupertype2.kt'
|
||||
inner (anonymous) class NonApproxToValidSupertype2Kt$test$1
|
||||
public final static method sel(p0: java.lang.Object, p1: java.lang.Object): java.lang.Object
|
||||
public final static method test(): void
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public interface U {
|
||||
// source: 'nonApproxToValidSupertype2.kt'
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public interface W {
|
||||
// source: 'nonApproxToValidSupertype2.kt'
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public interface X {
|
||||
// source: 'nonApproxToValidSupertype2.kt'
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public interface Z {
|
||||
// source: 'nonApproxToValidSupertype2.kt'
|
||||
}
|
||||
Reference in New Issue
Block a user