Remove unnecessary deprecation annotation
Private members on private companion objects have proper visibility so there is no need for the @Deprecated annotation. ^KT-54539 Fixed
This commit is contained in:
committed by
Alexander Udalov
parent
b42a7be0de
commit
9f3d8130db
@@ -16,6 +16,15 @@ class TestClass {
|
||||
}
|
||||
}
|
||||
|
||||
class TestClass2 {
|
||||
|
||||
private companion object {
|
||||
val testPublic: String = "1"
|
||||
private val testPrivate: String = "2"
|
||||
const val testPublicConst: String = "3"
|
||||
}
|
||||
}
|
||||
|
||||
interface TestConst {
|
||||
|
||||
private companion object {
|
||||
@@ -29,4 +38,4 @@ interface TestJvmField {
|
||||
@JvmField
|
||||
val test3: String = "3"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,6 +19,28 @@ public final class TestClass {
|
||||
private final inner class TestClass$Companion
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
final class TestClass2$Companion {
|
||||
// source: 'privateCompanionFields.kt'
|
||||
private method <init>(): void
|
||||
public synthetic method <init>(p0: kotlin.jvm.internal.DefaultConstructorMarker): void
|
||||
public final @org.jetbrains.annotations.NotNull method getTestPublic(): java.lang.String
|
||||
private final inner class TestClass2$Companion
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public final class TestClass2 {
|
||||
// source: 'privateCompanionFields.kt'
|
||||
private final static @org.jetbrains.annotations.NotNull field Companion: TestClass2$Companion
|
||||
private deprecated final static @java.lang.Deprecated field testPrivate: java.lang.String
|
||||
private deprecated final static @java.lang.Deprecated @org.jetbrains.annotations.NotNull field testPublic: java.lang.String
|
||||
public deprecated final static @java.lang.Deprecated @org.jetbrains.annotations.NotNull field testPublicConst: java.lang.String
|
||||
static method <clinit>(): void
|
||||
public method <init>(): void
|
||||
public synthetic final static method access$getTestPublic$cp(): java.lang.String
|
||||
private final inner class TestClass2$Companion
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
final class TestConst$Companion {
|
||||
// source: 'privateCompanionFields.kt'
|
||||
|
||||
@@ -19,6 +19,28 @@ public final class TestClass {
|
||||
private final inner class TestClass$Companion
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
final class TestClass2$Companion {
|
||||
// source: 'privateCompanionFields.kt'
|
||||
private method <init>(): void
|
||||
public synthetic method <init>(p0: kotlin.jvm.internal.DefaultConstructorMarker): void
|
||||
public final @org.jetbrains.annotations.NotNull method getTestPublic(): java.lang.String
|
||||
private final inner class TestClass2$Companion
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public final class TestClass2 {
|
||||
// source: 'privateCompanionFields.kt'
|
||||
private final static @org.jetbrains.annotations.NotNull field Companion: TestClass2$Companion
|
||||
private final static @org.jetbrains.annotations.NotNull field testPrivate: java.lang.String
|
||||
private final static @org.jetbrains.annotations.NotNull field testPublic: java.lang.String
|
||||
public deprecated final static @java.lang.Deprecated @org.jetbrains.annotations.NotNull field testPublicConst: java.lang.String
|
||||
static method <clinit>(): void
|
||||
public method <init>(): void
|
||||
public synthetic final static method access$getTestPublic$cp(): java.lang.String
|
||||
private final inner class TestClass2$Companion
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
final class TestConst$Companion {
|
||||
// source: 'privateCompanionFields.kt'
|
||||
|
||||
Reference in New Issue
Block a user