Deprecate deprecated in favor of Deprecated
This commit is contained in:
@@ -26,13 +26,13 @@ enum class Enum
|
||||
interface Trait
|
||||
|
||||
// Deprecation
|
||||
deprecated("") class Deprecated
|
||||
kotlin.deprecated("") class DeprecatedFQN
|
||||
kotlin. deprecated /**/ ("") class DeprecatedFQNSpaces
|
||||
@[deprecated("")] class DeprecatedWithBrackets
|
||||
@[kotlin.deprecated("")] class DeprecatedWithBracketsFQN
|
||||
Deprecated("") class DeprecatedClass
|
||||
kotlin.Deprecated("") class DeprecatedFQN
|
||||
kotlin. Deprecated /**/ ("") class DeprecatedFQNSpaces
|
||||
@[Deprecated("")] class DeprecatedWithBrackets
|
||||
@[kotlin.Deprecated("")] class DeprecatedWithBracketsFQN
|
||||
@[kotlin
|
||||
./**/deprecated ("")] class DeprecatedWithBracketsFQNSpaces
|
||||
./**/Deprecated ("")] class DeprecatedWithBracketsFQNSpaces
|
||||
|
||||
// Generic
|
||||
class Generic1<T>
|
||||
|
||||
+1
-1
@@ -1269,7 +1269,7 @@ kotlin.annotation.target(allowedTargets = {AnnotationTarget.CLASSIFIER}) kotlin.
|
||||
}
|
||||
|
||||
kotlin.annotation.target(allowedTargets = {AnnotationTarget.CLASSIFIER, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.CONSTRUCTOR, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.LOCAL_VARIABLE, AnnotationTarget.VALUE_PARAMETER}) kotlin.annotation.annotation(mustBeDocumented = true) public final class deprecated : kotlin.Annotation {
|
||||
/*primary*/ public constructor deprecated(/*0*/ value: kotlin.String, /*1*/ replaceWith: kotlin.ReplaceWith = ...)
|
||||
/*primary*/ public constructor Deprecated(/*0*/ value: kotlin.String, /*1*/ replaceWith: kotlin.ReplaceWith = ...)
|
||||
internal final val replaceWith: kotlin.ReplaceWith
|
||||
internal final fun <get-replaceWith>(): kotlin.ReplaceWith
|
||||
internal final val value: kotlin.String
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
import kotlin.test.assertEquals
|
||||
|
||||
fun box(): String {
|
||||
assertEquals("deprecated", deprecated::class.simpleName)
|
||||
assertEquals("Deprecated", Deprecated::class.simpleName)
|
||||
|
||||
return "OK"
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
package test
|
||||
|
||||
enum class MyEnum(@param:deprecated("") @property:deprecated("") val ord: Int) {
|
||||
enum class MyEnum(@param:Deprecated("") @property:Deprecated("") val ord: Int) {
|
||||
ENTRY(239);
|
||||
|
||||
fun f(Deprecated p: Int) {
|
||||
fun f(@java.lang.Deprecated p: Int) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,8 +3,8 @@ package test
|
||||
internal final enum class MyEnum : kotlin.Enum<test.MyEnum> {
|
||||
enum entry ENTRY
|
||||
|
||||
private constructor MyEnum(/*0*/ kotlin.deprecated(value = "") kotlin.Int)
|
||||
kotlin.deprecated(value = "") internal final val ord: kotlin.Int
|
||||
private constructor MyEnum(/*0*/ kotlin.Deprecated(value = "") kotlin.Int)
|
||||
kotlin.Deprecated(value = "") internal final val ord: kotlin.Int
|
||||
protected final /*fake_override*/ fun clone(): kotlin.Any
|
||||
public final /*fake_override*/ fun compareTo(/*0*/ test.MyEnum): kotlin.Int
|
||||
internal final fun f(/*0*/ java.lang.Deprecated() kotlin.Int): kotlin.Unit
|
||||
|
||||
+1
-1
@@ -2,4 +2,4 @@ import java.util.ArrayList
|
||||
|
||||
<!NONE_APPLICABLE!>ArrayList<!><Int>(1, 1) fun b() {}
|
||||
<!UNRESOLVED_REFERENCE!>Xoo<!>(<!UNRESOLVED_REFERENCE!>x<!>) fun c() {}
|
||||
<!DEPRECATED_JAVA_ANNOTATION!>Deprecated(<!UNRESOLVED_REFERENCE, TOO_MANY_ARGUMENTS!>x<!>)<!> fun a() {}
|
||||
<!DEPRECATED_JAVA_ANNOTATION!>java.lang.Deprecated(<!UNRESOLVED_REFERENCE, TOO_MANY_ARGUMENTS!>x<!>)<!> fun a() {}
|
||||
@@ -1,2 +1 @@
|
||||
annotation <!DEPRECATED_JAVA_ANNOTATION!>@java.lang.Deprecated<!> class my
|
||||
annotation <!DEPRECATED_JAVA_ANNOTATION!>Deprecated<!> class my1
|
||||
@@ -6,10 +6,3 @@ kotlin.annotation.annotation() java.lang.Deprecated() internal final class my :
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
kotlin.annotation.annotation() java.lang.Deprecated() internal final class my1 : kotlin.Annotation {
|
||||
public constructor my1()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import java.lang.Deprecated as deprecated
|
||||
|
||||
<!DEPRECATED_JAVA_ANNOTATION!>Deprecated<!> fun foo() {}
|
||||
<!DEPRECATED_JAVA_ANNOTATION!>java.lang.Deprecated<!> fun foo() {}
|
||||
|
||||
<!DEPRECATED_JAVA_ANNOTATION!>deprecated<!> fun foo1() {}
|
||||
@@ -1,7 +1,7 @@
|
||||
deprecated("text")
|
||||
Deprecated("text")
|
||||
annotation class obsolete()
|
||||
|
||||
deprecated("text")
|
||||
Deprecated("text")
|
||||
annotation class obsoleteWithParam(val text: String)
|
||||
|
||||
<!DEPRECATED_SYMBOL_WITH_MESSAGE!>obsolete<!> class Obsolete
|
||||
|
||||
@@ -14,14 +14,14 @@ obsoleteWithParam(text = "text") internal final class Obsolete2 {
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
kotlin.deprecated(value = "text") kotlin.annotation.annotation() internal final class obsolete : kotlin.Annotation {
|
||||
kotlin.Deprecated(value = "text") kotlin.annotation.annotation() internal final class obsolete : kotlin.Annotation {
|
||||
public constructor obsolete()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
kotlin.deprecated(value = "text") kotlin.annotation.annotation() internal final class obsoleteWithParam : kotlin.Annotation {
|
||||
kotlin.Deprecated(value = "text") kotlin.annotation.annotation() internal final class obsoleteWithParam : kotlin.Annotation {
|
||||
public constructor obsoleteWithParam(/*0*/ text: kotlin.String)
|
||||
internal final val text: kotlin.String
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// !DIAGNOSTICS: -UNUSED_VARIABLE
|
||||
|
||||
class Data {
|
||||
deprecated("text")
|
||||
Deprecated("text")
|
||||
fun component1(): String = throw Exception()
|
||||
fun component2(): String = throw Exception()
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ internal fun use(): kotlin.Unit
|
||||
|
||||
internal final class Data {
|
||||
public constructor Data()
|
||||
kotlin.deprecated(value = "text") internal final fun component1(): kotlin.String
|
||||
kotlin.Deprecated(value = "text") internal final fun component1(): kotlin.String
|
||||
internal final fun component2(): kotlin.String
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
|
||||
@@ -4,15 +4,15 @@ class UsefulClass(val param: Int = 2) {
|
||||
fun get(instance: Any, property: PropertyMetadata) : Int = 1
|
||||
fun set(instance: Any, property: PropertyMetadata, value: Int) {}
|
||||
|
||||
deprecated("message")
|
||||
Deprecated("message")
|
||||
fun member() {}
|
||||
}
|
||||
|
||||
deprecated("message")
|
||||
Deprecated("message")
|
||||
fun Obsolete(param: Int = 1): UsefulClass = UsefulClass(param)
|
||||
|
||||
class Invocable {
|
||||
deprecated("message")
|
||||
Deprecated("message")
|
||||
fun invoke() {}
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ class Initializer {
|
||||
val x = <!DEPRECATED_SYMBOL_WITH_MESSAGE!>Obsolete<!>()
|
||||
}
|
||||
|
||||
deprecated("does nothing good")
|
||||
Deprecated("does nothing good")
|
||||
fun Any.doNothing() = this.toString() // "this" should not be marked as deprecated despite it referes to deprecated function
|
||||
|
||||
class Delegation {
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
package
|
||||
|
||||
kotlin.deprecated(value = "message") internal fun Obsolete(/*0*/ param: kotlin.Int = ...): UsefulClass
|
||||
kotlin.Deprecated(value = "message") internal fun Obsolete(/*0*/ param: kotlin.Int = ...): UsefulClass
|
||||
internal fun block(): kotlin.Unit
|
||||
internal fun expression(): UsefulClass
|
||||
internal fun invoker(): kotlin.Unit
|
||||
internal fun reflection(): kotlin.reflect.KFunction1<kotlin.Int, UsefulClass>
|
||||
internal fun reflection2(): kotlin.reflect.KFunction1<UsefulClass, kotlin.Unit>
|
||||
kotlin.deprecated(value = "does nothing good") internal fun kotlin.Any.doNothing(): kotlin.String
|
||||
kotlin.Deprecated(value = "does nothing good") internal fun kotlin.Any.doNothing(): kotlin.String
|
||||
|
||||
internal final class Delegation {
|
||||
public constructor Delegation()
|
||||
@@ -29,7 +29,7 @@ internal final class Invocable {
|
||||
public constructor Invocable()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
kotlin.deprecated(value = "message") internal final fun invoke(): kotlin.Unit
|
||||
kotlin.Deprecated(value = "message") internal final fun invoke(): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ internal final class UsefulClass {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
internal final fun get(/*0*/ instance: kotlin.Any, /*1*/ property: kotlin.PropertyMetadata): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
kotlin.deprecated(value = "message") internal final fun member(): kotlin.Unit
|
||||
kotlin.Deprecated(value = "message") internal final fun member(): kotlin.Unit
|
||||
internal final fun set(/*0*/ instance: kotlin.Any, /*1*/ property: kotlin.PropertyMetadata, /*2*/ value: kotlin.Int): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// !DIAGNOSTICS: -UNUSED_EXPRESSION, -UNUSED_PARAMETER
|
||||
|
||||
open class C<T>() {
|
||||
deprecated("")
|
||||
Deprecated("")
|
||||
constructor(p: Int) : this(){}
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ package
|
||||
|
||||
internal open class C</*0*/ T> {
|
||||
public constructor C</*0*/ T>()
|
||||
kotlin.deprecated(value = "") public constructor C</*0*/ T>(/*0*/ p: kotlin.Int)
|
||||
kotlin.Deprecated(value = "") public constructor C</*0*/ T>(/*0*/ p: kotlin.Int)
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import <!DEPRECATED_SYMBOL_WITH_MESSAGE!>C<!> as C2
|
||||
|
||||
deprecated("obsolete")
|
||||
Deprecated("obsolete")
|
||||
class C {
|
||||
fun use() {}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ package
|
||||
|
||||
internal fun useAlias(/*0*/ c: C): kotlin.Unit
|
||||
|
||||
kotlin.deprecated(value = "obsolete") internal final class C {
|
||||
kotlin.Deprecated(value = "obsolete") internal final class C {
|
||||
public constructor C()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class Iter {
|
||||
deprecated("text")
|
||||
Deprecated("text")
|
||||
fun iterator() : IterIterator = throw Exception()
|
||||
|
||||
class IterIterator {
|
||||
@@ -11,9 +11,9 @@ class Iter {
|
||||
class Iter2 {
|
||||
fun iterator() : Iter2Iterator = throw Exception()
|
||||
class Iter2Iterator {
|
||||
deprecated("text")
|
||||
Deprecated("text")
|
||||
fun hasNext(): Boolean = throw UnsupportedOperationException()
|
||||
deprecated("text")
|
||||
Deprecated("text")
|
||||
fun next(): String = throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ internal final class Iter {
|
||||
public constructor Iter()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
kotlin.deprecated(value = "text") internal final fun iterator(): Iter.IterIterator
|
||||
kotlin.Deprecated(value = "text") internal final fun iterator(): Iter.IterIterator
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
internal final class IterIterator {
|
||||
@@ -29,9 +29,9 @@ internal final class Iter2 {
|
||||
internal final class Iter2Iterator {
|
||||
public constructor Iter2Iterator()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
kotlin.deprecated(value = "text") internal final fun hasNext(): kotlin.Boolean
|
||||
kotlin.Deprecated(value = "text") internal final fun hasNext(): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
kotlin.deprecated(value = "text") internal final fun next(): kotlin.String
|
||||
kotlin.Deprecated(value = "text") internal final fun next(): kotlin.String
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,6 +11,6 @@ public class A {
|
||||
|
||||
// FILE: B.kt
|
||||
|
||||
class B(private @property:deprecated val foo: String) : <!DEPRECATED_SYMBOL_WITH_MESSAGE!>A<!>() {
|
||||
class B(private @property:Deprecated val foo: String) : <!DEPRECATED_SYMBOL_WITH_MESSAGE!>A<!>() {
|
||||
override fun getFoo(text: String): String = super.<!DEPRECATED_SYMBOL_WITH_MESSAGE!>getFoo<!>(text + <!DEPRECATED_SYMBOL!>foo<!>)
|
||||
}
|
||||
@@ -1,16 +1,16 @@
|
||||
package
|
||||
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open class A {
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open class A {
|
||||
public constructor A()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open fun getFoo(/*0*/ text: kotlin.String!): kotlin.String!
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open fun getFoo(/*0*/ text: kotlin.String!): kotlin.String!
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
internal final class B : A {
|
||||
public constructor B(/*0*/ foo: kotlin.String)
|
||||
@property:kotlin.deprecated() private final val foo: kotlin.String
|
||||
@property:kotlin.Deprecated() private final val foo: kotlin.String
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ fun getFoo(/*0*/ text: kotlin.String): kotlin.String
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package
|
||||
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open class A {
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open class A {
|
||||
public constructor A()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open fun getFoo(/*0*/ text: kotlin.String!): kotlin.String!
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open fun getFoo(/*0*/ text: kotlin.String!): kotlin.String!
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class TopLevel {
|
||||
deprecated("Nested")
|
||||
Deprecated("Nested")
|
||||
class Nested {
|
||||
companion object {
|
||||
fun use() {}
|
||||
|
||||
@@ -8,7 +8,7 @@ internal final class TopLevel {
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
kotlin.deprecated(value = "Nested") internal final class Nested {
|
||||
kotlin.Deprecated(value = "Nested") internal final class Nested {
|
||||
public constructor Nested()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
deprecated("Object")
|
||||
Deprecated("Object")
|
||||
object Obsolete {
|
||||
fun use() {}
|
||||
}
|
||||
|
||||
class Another {
|
||||
deprecated("Object")
|
||||
Deprecated("Object")
|
||||
companion object {
|
||||
fun use() {}
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ internal final class Another {
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
kotlin.deprecated(value = "Object") public companion object Companion {
|
||||
kotlin.Deprecated(value = "Object") public companion object Companion {
|
||||
private constructor Companion()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
@@ -19,7 +19,7 @@ internal final class Another {
|
||||
}
|
||||
}
|
||||
|
||||
kotlin.deprecated(value = "Object") internal object Obsolete {
|
||||
kotlin.Deprecated(value = "Object") internal object Obsolete {
|
||||
private constructor Obsolete()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
|
||||
@@ -1,37 +1,37 @@
|
||||
// !DIAGNOSTICS: -UNUSED_EXPRESSION
|
||||
|
||||
class Delegate() {
|
||||
deprecated("text")
|
||||
Deprecated("text")
|
||||
fun get(instance: Any, property: PropertyMetadata) : Int = 1
|
||||
|
||||
deprecated("text")
|
||||
Deprecated("text")
|
||||
fun set(instance: Any, property: PropertyMetadata, value: Int) {}
|
||||
}
|
||||
|
||||
class PropertyHolder {
|
||||
deprecated("text")
|
||||
Deprecated("text")
|
||||
val x = 1
|
||||
|
||||
deprecated("text")
|
||||
Deprecated("text")
|
||||
var name = "String"
|
||||
|
||||
val valDelegate <!DEPRECATED_SYMBOL_WITH_MESSAGE!>by<!> Delegate()
|
||||
var varDelegate <!DEPRECATED_SYMBOL_WITH_MESSAGE, DEPRECATED_SYMBOL_WITH_MESSAGE!>by<!> Delegate()
|
||||
|
||||
public val test1: String = ""
|
||||
@deprecated("val-getter") get
|
||||
@Deprecated("val-getter") get
|
||||
|
||||
public var test2: String = ""
|
||||
@deprecated("var-getter") get
|
||||
@deprecated("var-setter") set
|
||||
@Deprecated("var-getter") get
|
||||
@Deprecated("var-setter") set
|
||||
|
||||
public var test3: String = ""
|
||||
@deprecated("var-getter") get
|
||||
@Deprecated("var-getter") get
|
||||
set
|
||||
|
||||
public var test4: String = ""
|
||||
get
|
||||
@deprecated("var-setter") set
|
||||
@Deprecated("var-setter") set
|
||||
}
|
||||
|
||||
fun PropertyHolder.extFunction() {
|
||||
|
||||
@@ -7,22 +7,22 @@ internal fun PropertyHolder.extFunction(): kotlin.Unit
|
||||
internal final class Delegate {
|
||||
public constructor Delegate()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
kotlin.deprecated(value = "text") internal final fun get(/*0*/ instance: kotlin.Any, /*1*/ property: kotlin.PropertyMetadata): kotlin.Int
|
||||
kotlin.Deprecated(value = "text") internal final fun get(/*0*/ instance: kotlin.Any, /*1*/ property: kotlin.PropertyMetadata): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
kotlin.deprecated(value = "text") internal final fun set(/*0*/ instance: kotlin.Any, /*1*/ property: kotlin.PropertyMetadata, /*2*/ value: kotlin.Int): kotlin.Unit
|
||||
kotlin.Deprecated(value = "text") internal final fun set(/*0*/ instance: kotlin.Any, /*1*/ property: kotlin.PropertyMetadata, /*2*/ value: kotlin.Int): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
internal final class PropertyHolder {
|
||||
public constructor PropertyHolder()
|
||||
kotlin.deprecated(value = "text") internal final var name: kotlin.String
|
||||
kotlin.Deprecated(value = "text") internal final var name: kotlin.String
|
||||
public final val test1: kotlin.String = ""
|
||||
public final var test2: kotlin.String
|
||||
public final var test3: kotlin.String
|
||||
public final var test4: kotlin.String
|
||||
internal final val valDelegate: kotlin.Int
|
||||
internal final var varDelegate: kotlin.Int
|
||||
kotlin.deprecated(value = "text") internal final val x: kotlin.Int = 1
|
||||
kotlin.Deprecated(value = "text") internal final val x: kotlin.Int = 1
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
+4
-4
@@ -1,16 +1,16 @@
|
||||
// !DIAGNOSTICS: -UNUSED_EXPRESSION
|
||||
|
||||
class PropertyHolder {
|
||||
deprecated("")
|
||||
Deprecated("")
|
||||
val a1 = 1
|
||||
|
||||
@property:deprecated("")
|
||||
@property:Deprecated("")
|
||||
var a2 = ""
|
||||
|
||||
@get:deprecated("")
|
||||
@get:Deprecated("")
|
||||
public val withGetter: String = ""
|
||||
|
||||
@set:deprecated("")
|
||||
@set:Deprecated("")
|
||||
public var withSetter: String = ""
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -5,8 +5,8 @@ internal fun literals(): kotlin.Unit
|
||||
|
||||
internal final class PropertyHolder {
|
||||
public constructor PropertyHolder()
|
||||
kotlin.deprecated(value = "") internal final val a1: kotlin.Int = 1
|
||||
@property:kotlin.deprecated(value = "") internal final var a2: kotlin.String
|
||||
kotlin.Deprecated(value = "") internal final val a1: kotlin.Int = 1
|
||||
@property:kotlin.Deprecated(value = "") internal final var a2: kotlin.String
|
||||
public final val withGetter: kotlin.String = ""
|
||||
public final var withSetter: kotlin.String
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
deprecated("Class")
|
||||
Deprecated("Class")
|
||||
open class Obsolete {
|
||||
fun use() {}
|
||||
}
|
||||
|
||||
deprecated("Class")
|
||||
open class Obsolete2 deprecated("Constructor") constructor() {
|
||||
Deprecated("Class")
|
||||
open class Obsolete2 Deprecated("Constructor") constructor() {
|
||||
fun use() {}
|
||||
}
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ internal object Object : Obsolete {
|
||||
internal final override /*1*/ /*fake_override*/ fun use(): kotlin.Unit
|
||||
}
|
||||
|
||||
kotlin.deprecated(value = "Class") internal open class Obsolete {
|
||||
kotlin.Deprecated(value = "Class") internal open class Obsolete {
|
||||
public constructor Obsolete()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
@@ -47,8 +47,8 @@ kotlin.deprecated(value = "Class") internal open class Obsolete {
|
||||
internal final fun use(): kotlin.Unit
|
||||
}
|
||||
|
||||
kotlin.deprecated(value = "Class") internal open class Obsolete2 {
|
||||
kotlin.deprecated(value = "Constructor") public constructor Obsolete2()
|
||||
kotlin.Deprecated(value = "Class") internal open class Obsolete2 {
|
||||
kotlin.Deprecated(value = "Constructor") public constructor Obsolete2()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
@@ -129,7 +129,7 @@ package test {
|
||||
invisible_fake final override /*1*/ /*fake_override*/ var windowStateListener: [ERROR : Unresolved java classifier: WindowStateListener]!
|
||||
invisible_fake final override /*1*/ /*fake_override*/ var x: kotlin.Int
|
||||
invisible_fake final override /*1*/ /*fake_override*/ var y: kotlin.Int
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun action(/*0*/ p0: [ERROR : Unresolved java classifier: Event]!, /*1*/ p1: kotlin.Any!): kotlin.Boolean
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun action(/*0*/ p0: [ERROR : Unresolved java classifier: Event]!, /*1*/ p1: kotlin.Any!): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun add(/*0*/ p0: [ERROR : Unresolved java classifier: PopupMenu]!): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun add(/*0*/ p0: java.awt.Component!): java.awt.Component!
|
||||
public open override /*1*/ /*fake_override*/ fun add(/*0*/ p0: java.awt.Component!, /*1*/ p1: kotlin.Any!): kotlin.Unit
|
||||
@@ -164,13 +164,13 @@ package test {
|
||||
invisible_fake final override /*1*/ /*fake_override*/ fun applyCompoundShape(/*0*/ p0: [ERROR : Unresolved java classifier: Region]!): kotlin.Unit
|
||||
invisible_fake final override /*1*/ /*fake_override*/ fun applyCurrentShape(): kotlin.Unit
|
||||
invisible_fake final override /*1*/ /*fake_override*/ fun applyCurrentShapeBelowMe(): kotlin.Unit
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun applyResourceBundle(/*0*/ p0: [ERROR : Unresolved java classifier: ResourceBundle]!): kotlin.Unit
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun applyResourceBundle(/*0*/ p0: kotlin.String!): kotlin.Unit
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun applyResourceBundle(/*0*/ p0: [ERROR : Unresolved java classifier: ResourceBundle]!): kotlin.Unit
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun applyResourceBundle(/*0*/ p0: kotlin.String!): kotlin.Unit
|
||||
invisible_fake final override /*1*/ /*fake_override*/ fun areBoundsValid(): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun areFocusTraversalKeysSet(/*0*/ p0: kotlin.Int): kotlin.Boolean
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun areInputMethodsEnabled(): kotlin.Boolean
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun autoProcessMouseWheel(/*0*/ p0: [ERROR : Unresolved java classifier: MouseWheelEvent]!): kotlin.Unit
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun bounds(): [ERROR : Unresolved java classifier: Rectangle]!
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun bounds(): [ERROR : Unresolved java classifier: Rectangle]!
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun calculateCurrentShape(): [ERROR : Unresolved java classifier: Region]!
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun calculateSecurityWarningPosition(/*0*/ p0: kotlin.Double, /*1*/ p1: kotlin.Double, /*2*/ p2: kotlin.Double, /*3*/ p3: kotlin.Double): [ERROR : Unresolved java classifier: Point2D]!
|
||||
invisible_fake final override /*1*/ /*fake_override*/ fun canBeFocusOwner(): kotlin.Boolean
|
||||
@@ -194,7 +194,7 @@ package test {
|
||||
public open override /*1*/ /*fake_override*/ fun contains(/*0*/ p0: [ERROR : Unresolved java classifier: Point]!): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun contains(/*0*/ p0: kotlin.Int, /*1*/ p1: kotlin.Int): kotlin.Boolean
|
||||
invisible_fake final override /*1*/ /*fake_override*/ fun containsFocus(): kotlin.Boolean
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun countComponents(): kotlin.Int
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun countComponents(): kotlin.Int
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun countHierarchyMembers(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun createBufferStrategy(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun createBufferStrategy(/*0*/ p0: kotlin.Int, /*1*/ p1: [ERROR : Unresolved java classifier: BufferCapabilities]!): kotlin.Unit
|
||||
@@ -206,10 +206,10 @@ package test {
|
||||
public open override /*1*/ /*fake_override*/ fun createVolatileImage(/*0*/ p0: kotlin.Int, /*1*/ p1: kotlin.Int): [ERROR : Unresolved java classifier: VolatileImage]!
|
||||
public open override /*1*/ /*fake_override*/ fun createVolatileImage(/*0*/ p0: kotlin.Int, /*1*/ p1: kotlin.Int, /*2*/ p2: [ERROR : Unresolved java classifier: ImageCapabilities]!): [ERROR : Unresolved java classifier: VolatileImage]!
|
||||
invisible_fake final override /*1*/ /*fake_override*/ fun decreaseComponentCount(/*0*/ p0: java.awt.Component!): kotlin.Unit
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun deliverEvent(/*0*/ p0: [ERROR : Unresolved java classifier: Event]!): kotlin.Unit
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun deliverEvent(/*0*/ p0: [ERROR : Unresolved java classifier: Event]!): kotlin.Unit
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun deliverMouseWheelToAncestor(/*0*/ p0: [ERROR : Unresolved java classifier: MouseWheelEvent]!): kotlin.Unit
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun deserializeResources(/*0*/ p0: java.io.ObjectInputStream!): kotlin.Unit
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun disable(): kotlin.Unit
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun disable(): kotlin.Unit
|
||||
protected/*protected and package*/ final override /*1*/ /*fake_override*/ fun disableEvents(/*0*/ p0: kotlin.Long): kotlin.Unit
|
||||
public final override /*1*/ /*fake_override*/ fun dispatchEvent(/*0*/ p0: [ERROR : Unresolved java classifier: AWTEvent]!): kotlin.Unit
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun dispatchEventImpl(/*0*/ p0: [ERROR : Unresolved java classifier: AWTEvent]!): kotlin.Unit
|
||||
@@ -220,8 +220,8 @@ package test {
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun doDispose(): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun doLayout(): kotlin.Unit
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun doSwingSerialization(): kotlin.Unit
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun enable(): kotlin.Unit
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun enable(/*0*/ p0: kotlin.Boolean): kotlin.Unit
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun enable(): kotlin.Unit
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun enable(/*0*/ p0: kotlin.Boolean): kotlin.Unit
|
||||
protected/*protected and package*/ final override /*1*/ /*fake_override*/ fun enableEvents(/*0*/ p0: kotlin.Long): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun enableInputMethods(/*0*/ p0: kotlin.Boolean): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
@@ -278,7 +278,7 @@ package test {
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun getContainingWindow(): java.awt.Window!
|
||||
public open override /*1*/ /*fake_override*/ fun getContentPane(): java.awt.Container!
|
||||
public open override /*1*/ /*fake_override*/ fun getCursor(): [ERROR : Unresolved java classifier: Cursor]!
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun getCursorType(): kotlin.Int
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun getCursorType(): kotlin.Int
|
||||
invisible_fake final override /*1*/ /*fake_override*/ fun getCursor_NoClientCode(): [ERROR : Unresolved java classifier: Cursor]!
|
||||
public open override /*1*/ /*fake_override*/ fun getDefaultCloseOperation(): kotlin.Int
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun getDocumentRoot(): java.awt.Window!
|
||||
@@ -355,7 +355,7 @@ package test {
|
||||
invisible_fake final override /*1*/ /*fake_override*/ fun getOwner_NoClientCode(): java.awt.Window!
|
||||
public open override /*1*/ /*fake_override*/ fun getParent(): java.awt.Container!
|
||||
invisible_fake final override /*1*/ /*fake_override*/ fun getParent_NoClientCode(): java.awt.Container!
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun getPeer(): [ERROR : Unresolved java classifier: ComponentPeer]!
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun getPeer(): [ERROR : Unresolved java classifier: ComponentPeer]!
|
||||
public open override /*1*/ /*fake_override*/ fun getPreferredSize(): java.awt.Dimension!
|
||||
public open override /*1*/ /*fake_override*/ fun getPropertyChangeListeners(): kotlin.Array<(out) [ERROR : Unresolved java classifier: PropertyChangeListener]!>!
|
||||
public open override /*1*/ /*fake_override*/ fun getPropertyChangeListeners(/*0*/ p0: kotlin.String!): kotlin.Array<(out) [ERROR : Unresolved java classifier: PropertyChangeListener]!>!
|
||||
@@ -382,13 +382,13 @@ package test {
|
||||
public open override /*1*/ /*fake_override*/ fun getWindowStateListeners(): kotlin.Array<(out) [ERROR : Unresolved java classifier: WindowStateListener]!>!
|
||||
public open override /*1*/ /*fake_override*/ fun getX(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun getY(): kotlin.Int
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun gotFocus(/*0*/ p0: [ERROR : Unresolved java classifier: Event]!, /*1*/ p1: kotlin.Any!): kotlin.Boolean
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun handleEvent(/*0*/ p0: [ERROR : Unresolved java classifier: Event]!): kotlin.Boolean
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun gotFocus(/*0*/ p0: [ERROR : Unresolved java classifier: Event]!, /*1*/ p1: kotlin.Any!): kotlin.Boolean
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun handleEvent(/*0*/ p0: [ERROR : Unresolved java classifier: Event]!): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hasFocus(): kotlin.Boolean
|
||||
invisible_fake final override /*1*/ /*fake_override*/ fun hasHeavyweightDescendants(): kotlin.Boolean
|
||||
invisible_fake final override /*1*/ /*fake_override*/ fun hasLightweightDescendants(): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun hide(): kotlin.Unit
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun hide(): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun imageUpdate(/*0*/ p0: [ERROR : Unresolved java classifier: Image]!, /*1*/ p1: kotlin.Int, /*2*/ p2: kotlin.Int, /*3*/ p3: kotlin.Int, /*4*/ p4: kotlin.Int, /*5*/ p5: kotlin.Int): kotlin.Boolean
|
||||
invisible_fake final override /*1*/ /*fake_override*/ fun increaseComponentCount(/*0*/ p0: java.awt.Component!): kotlin.Unit
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun init(/*0*/ p0: [ERROR : Unresolved java classifier: GraphicsConfiguration]!): kotlin.Unit
|
||||
@@ -396,8 +396,8 @@ package test {
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun initDeserializedWindow(): kotlin.Unit
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun initGC(/*0*/ p0: [ERROR : Unresolved java classifier: GraphicsConfiguration]!): [ERROR : Unresolved java classifier: GraphicsConfiguration]!
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun initializeFocusTraversalKeys(): kotlin.Unit
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun insets(): [ERROR : Unresolved java classifier: Insets]!
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun inside(/*0*/ p0: kotlin.Int, /*1*/ p1: kotlin.Int): kotlin.Boolean
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun insets(): [ERROR : Unresolved java classifier: Insets]!
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun inside(/*0*/ p0: kotlin.Int, /*1*/ p1: kotlin.Int): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun invalidate(): kotlin.Unit
|
||||
invisible_fake final override /*1*/ /*fake_override*/ fun invalidateIfValid(): kotlin.Unit
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun invalidateParent(): kotlin.Unit
|
||||
@@ -419,7 +419,7 @@ package test {
|
||||
public final override /*1*/ /*fake_override*/ fun isFocusCycleRoot(): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun isFocusCycleRoot(/*0*/ p0: java.awt.Container!): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun isFocusOwner(): kotlin.Boolean
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun isFocusTraversable(): kotlin.Boolean
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun isFocusTraversable(): kotlin.Boolean
|
||||
invisible_fake final override /*1*/ /*fake_override*/ fun isFocusTraversableOverridden(): kotlin.Boolean
|
||||
public final override /*1*/ /*fake_override*/ fun isFocusTraversalPolicyProvider(): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun isFocusTraversalPolicySet(): kotlin.Boolean
|
||||
@@ -452,9 +452,9 @@ package test {
|
||||
public open override /*1*/ /*fake_override*/ fun isValidateRoot(): kotlin.Boolean
|
||||
[ERROR : java.beans.Transient]() public open override /*1*/ /*fake_override*/ fun isVisible(): kotlin.Boolean
|
||||
invisible_fake final override /*1*/ /*fake_override*/ fun isVisible_NoClientCode(): kotlin.Boolean
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun keyDown(/*0*/ p0: [ERROR : Unresolved java classifier: Event]!, /*1*/ p1: kotlin.Int): kotlin.Boolean
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun keyUp(/*0*/ p0: [ERROR : Unresolved java classifier: Event]!, /*1*/ p1: kotlin.Int): kotlin.Boolean
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun layout(): kotlin.Unit
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun keyDown(/*0*/ p0: [ERROR : Unresolved java classifier: Event]!, /*1*/ p1: kotlin.Int): kotlin.Boolean
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun keyUp(/*0*/ p0: [ERROR : Unresolved java classifier: Event]!, /*1*/ p1: kotlin.Int): kotlin.Boolean
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun layout(): kotlin.Unit
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun lightweightPaint(/*0*/ p0: [ERROR : Unresolved java classifier: Graphics]!): kotlin.Unit
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun lightweightPrint(/*0*/ p0: [ERROR : Unresolved java classifier: Graphics]!): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun list(): kotlin.Unit
|
||||
@@ -462,24 +462,24 @@ package test {
|
||||
public open override /*1*/ /*fake_override*/ fun list(/*0*/ p0: [ERROR : Unresolved java classifier: PrintWriter]!, /*1*/ p1: kotlin.Int): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun list(/*0*/ p0: java.io.PrintStream!): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun list(/*0*/ p0: java.io.PrintStream!, /*1*/ p1: kotlin.Int): kotlin.Unit
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun locate(/*0*/ p0: kotlin.Int, /*1*/ p1: kotlin.Int): java.awt.Component!
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun location(): [ERROR : Unresolved java classifier: Point]!
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun locate(/*0*/ p0: kotlin.Int, /*1*/ p1: kotlin.Int): java.awt.Component!
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun location(): [ERROR : Unresolved java classifier: Point]!
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun location_NoClientCode(): [ERROR : Unresolved java classifier: Point]!
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun lostFocus(/*0*/ p0: [ERROR : Unresolved java classifier: Event]!, /*1*/ p1: kotlin.Any!): kotlin.Boolean
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun minimumSize(): java.awt.Dimension!
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun lostFocus(/*0*/ p0: [ERROR : Unresolved java classifier: Event]!, /*1*/ p1: kotlin.Any!): kotlin.Boolean
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun minimumSize(): java.awt.Dimension!
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun mixOnHiding(/*0*/ p0: kotlin.Boolean): kotlin.Unit
|
||||
invisible_fake final override /*1*/ /*fake_override*/ fun mixOnReshaping(): kotlin.Unit
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun mixOnShowing(): kotlin.Unit
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun mixOnValidating(): kotlin.Unit
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun mixOnZOrderChanging(/*0*/ p0: kotlin.Int, /*1*/ p1: kotlin.Int): kotlin.Unit
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun mouseDown(/*0*/ p0: [ERROR : Unresolved java classifier: Event]!, /*1*/ p1: kotlin.Int, /*2*/ p2: kotlin.Int): kotlin.Boolean
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun mouseDrag(/*0*/ p0: [ERROR : Unresolved java classifier: Event]!, /*1*/ p1: kotlin.Int, /*2*/ p2: kotlin.Int): kotlin.Boolean
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun mouseEnter(/*0*/ p0: [ERROR : Unresolved java classifier: Event]!, /*1*/ p1: kotlin.Int, /*2*/ p2: kotlin.Int): kotlin.Boolean
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun mouseExit(/*0*/ p0: [ERROR : Unresolved java classifier: Event]!, /*1*/ p1: kotlin.Int, /*2*/ p2: kotlin.Int): kotlin.Boolean
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun mouseMove(/*0*/ p0: [ERROR : Unresolved java classifier: Event]!, /*1*/ p1: kotlin.Int, /*2*/ p2: kotlin.Int): kotlin.Boolean
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun mouseUp(/*0*/ p0: [ERROR : Unresolved java classifier: Event]!, /*1*/ p1: kotlin.Int, /*2*/ p2: kotlin.Int): kotlin.Boolean
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun move(/*0*/ p0: kotlin.Int, /*1*/ p1: kotlin.Int): kotlin.Unit
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun nextFocus(): kotlin.Unit
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun mouseDown(/*0*/ p0: [ERROR : Unresolved java classifier: Event]!, /*1*/ p1: kotlin.Int, /*2*/ p2: kotlin.Int): kotlin.Boolean
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun mouseDrag(/*0*/ p0: [ERROR : Unresolved java classifier: Event]!, /*1*/ p1: kotlin.Int, /*2*/ p2: kotlin.Int): kotlin.Boolean
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun mouseEnter(/*0*/ p0: [ERROR : Unresolved java classifier: Event]!, /*1*/ p1: kotlin.Int, /*2*/ p2: kotlin.Int): kotlin.Boolean
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun mouseExit(/*0*/ p0: [ERROR : Unresolved java classifier: Event]!, /*1*/ p1: kotlin.Int, /*2*/ p2: kotlin.Int): kotlin.Boolean
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun mouseMove(/*0*/ p0: [ERROR : Unresolved java classifier: Event]!, /*1*/ p1: kotlin.Int, /*2*/ p2: kotlin.Int): kotlin.Boolean
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun mouseUp(/*0*/ p0: [ERROR : Unresolved java classifier: Event]!, /*1*/ p1: kotlin.Int, /*2*/ p2: kotlin.Int): kotlin.Boolean
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun move(/*0*/ p0: kotlin.Int, /*1*/ p1: kotlin.Int): kotlin.Unit
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun nextFocus(): kotlin.Unit
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun notifyNewBounds(/*0*/ p0: kotlin.Boolean, /*1*/ p1: kotlin.Boolean): kotlin.Unit
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun numListening(/*0*/ p0: kotlin.Long): kotlin.Int
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun ownedInit(/*0*/ p0: java.awt.Window!): kotlin.Unit
|
||||
@@ -490,12 +490,12 @@ package test {
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun paintHeavyweightComponents(/*0*/ p0: [ERROR : Unresolved java classifier: Graphics]!): kotlin.Unit
|
||||
protected/*protected and package*/ open override /*1*/ /*fake_override*/ fun paramString(): kotlin.String!
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun pointRelativeToComponent(/*0*/ p0: [ERROR : Unresolved java classifier: Point]!): [ERROR : Unresolved java classifier: Point]!
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun postEvent(/*0*/ p0: [ERROR : Unresolved java classifier: Event]!): kotlin.Boolean
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun postEvent(/*0*/ p0: [ERROR : Unresolved java classifier: Event]!): kotlin.Boolean
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun postProcessKeyEvent(/*0*/ p0: [ERROR : Unresolved java classifier: KeyEvent]!): kotlin.Unit
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun postWindowEvent(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun postsOldMouseEvents(): kotlin.Boolean
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun preProcessKeyEvent(/*0*/ p0: [ERROR : Unresolved java classifier: KeyEvent]!): kotlin.Unit
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun preferredSize(): java.awt.Dimension!
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun preferredSize(): java.awt.Dimension!
|
||||
public open override /*1*/ /*fake_override*/ fun prepareImage(/*0*/ p0: [ERROR : Unresolved java classifier: Image]!, /*1*/ p1: [ERROR : Unresolved java classifier: ImageObserver]!): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun prepareImage(/*0*/ p0: [ERROR : Unresolved java classifier: Image]!, /*1*/ p1: kotlin.Int, /*2*/ p2: kotlin.Int, /*3*/ p3: [ERROR : Unresolved java classifier: ImageObserver]!): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun print(/*0*/ p0: [ERROR : Unresolved java classifier: Graphics]!): kotlin.Unit
|
||||
@@ -565,10 +565,10 @@ package test {
|
||||
public open override /*1*/ /*fake_override*/ fun requestFocusInWindow(): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun requestFocusInWindow(/*0*/ p0: [ERROR : Unresolved java classifier: Cause]!): kotlin.Boolean
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun requestFocusInWindow(/*0*/ p0: kotlin.Boolean, /*1*/ p1: [ERROR : Unresolved java classifier: Cause]!): kotlin.Boolean
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun reshape(/*0*/ p0: kotlin.Int, /*1*/ p1: kotlin.Int, /*2*/ p2: kotlin.Int, /*3*/ p3: kotlin.Int): kotlin.Unit
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun reshape(/*0*/ p0: kotlin.Int, /*1*/ p1: kotlin.Int, /*2*/ p2: kotlin.Int, /*3*/ p3: kotlin.Int): kotlin.Unit
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun reshapeNativePeer(/*0*/ p0: kotlin.Int, /*1*/ p1: kotlin.Int, /*2*/ p2: kotlin.Int, /*3*/ p3: kotlin.Int, /*4*/ p4: kotlin.Int): kotlin.Unit
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun resize(/*0*/ p0: java.awt.Dimension!): kotlin.Unit
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun resize(/*0*/ p0: kotlin.Int, /*1*/ p1: kotlin.Int): kotlin.Unit
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun resize(/*0*/ p0: java.awt.Dimension!): kotlin.Unit
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun resize(/*0*/ p0: kotlin.Int, /*1*/ p1: kotlin.Int): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun revalidate(): kotlin.Unit
|
||||
public final override /*1*/ /*fake_override*/ fun setAlwaysOnTop(/*0*/ p0: kotlin.Boolean): kotlin.Unit
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun setAutoFocusTransferOnDisposal(/*0*/ p0: kotlin.Boolean): kotlin.Unit
|
||||
@@ -581,7 +581,7 @@ package test {
|
||||
public open override /*1*/ /*fake_override*/ fun setComponentOrientation(/*0*/ p0: [ERROR : Unresolved java classifier: ComponentOrientation]!): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun setComponentZOrder(/*0*/ p0: java.awt.Component!, /*1*/ p1: kotlin.Int): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun setContentPane(/*0*/ p0: java.awt.Container!): kotlin.Unit
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun setCursor(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun setCursor(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun setDefaultCloseOperation(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun setDropTarget(/*0*/ p0: [ERROR : Unresolved java classifier: DropTarget]!): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun setEnabled(/*0*/ p0: kotlin.Boolean): kotlin.Unit
|
||||
@@ -632,9 +632,9 @@ package test {
|
||||
public open override /*1*/ /*fake_override*/ fun setUndecorated(/*0*/ p0: kotlin.Boolean): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun setVisible(/*0*/ p0: kotlin.Boolean): kotlin.Unit
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun setWarningString(): kotlin.Unit
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun show(): kotlin.Unit
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun show(/*0*/ p0: kotlin.Boolean): kotlin.Unit
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun size(): java.awt.Dimension!
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun show(): kotlin.Unit
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun show(/*0*/ p0: kotlin.Boolean): kotlin.Unit
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun size(): java.awt.Dimension!
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun startLWModal(): kotlin.Unit
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun stopLWModal(): kotlin.Unit
|
||||
invisible_fake final override /*1*/ /*fake_override*/ fun subtractAndApplyShape(/*0*/ p0: [ERROR : Unresolved java classifier: Region]!): kotlin.Unit
|
||||
|
||||
@@ -26,8 +26,8 @@ internal final class Test : java.lang.Thread {
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun blockedOn(/*0*/ p0: [ERROR : Unresolved java classifier: Interruptible]!): kotlin.Unit
|
||||
public final override /*1*/ /*fake_override*/ fun checkAccess(): kotlin.Unit
|
||||
protected/*protected and package*/ open override /*1*/ /*fake_override*/ fun clone(): kotlin.Any!
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun countStackFrames(): kotlin.Int
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun destroy(): kotlin.Unit
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun countStackFrames(): kotlin.Int
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun destroy(): kotlin.Unit
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun dispatchUncaughtException(/*0*/ p0: kotlin.Throwable!): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun exit(): kotlin.Unit
|
||||
@@ -50,7 +50,7 @@ internal final class Test : java.lang.Thread {
|
||||
public final override /*1*/ /*fake_override*/ fun join(): kotlin.Unit
|
||||
public final override /*1*/ /*fake_override*/ fun join(/*0*/ p0: kotlin.Long): kotlin.Unit
|
||||
public final override /*1*/ /*fake_override*/ fun join(/*0*/ p0: kotlin.Long, /*1*/ p1: kotlin.Int): kotlin.Unit
|
||||
kotlin.deprecated(value = "Deprecated in Java") public final override /*1*/ /*fake_override*/ fun resume(): kotlin.Unit
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public final override /*1*/ /*fake_override*/ fun resume(): kotlin.Unit
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun resume0(): kotlin.Unit
|
||||
public open override /*1*/ fun run(): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun setContextClassLoader(/*0*/ p0: java.lang.ClassLoader!): kotlin.Unit
|
||||
@@ -62,10 +62,10 @@ internal final class Test : java.lang.Thread {
|
||||
public open override /*1*/ /*fake_override*/ fun setUncaughtExceptionHandler(/*0*/ p0: java.lang.Thread.UncaughtExceptionHandler!): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun start(): kotlin.Unit
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun start0(): kotlin.Unit
|
||||
kotlin.deprecated(value = "Deprecated in Java") public final override /*1*/ /*fake_override*/ fun stop(): kotlin.Unit
|
||||
kotlin.deprecated(value = "Deprecated in Java") public final override /*1*/ /*fake_override*/ fun stop(/*0*/ p0: kotlin.Throwable!): kotlin.Unit
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public final override /*1*/ /*fake_override*/ fun stop(): kotlin.Unit
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public final override /*1*/ /*fake_override*/ fun stop(/*0*/ p0: kotlin.Throwable!): kotlin.Unit
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun stop0(/*0*/ p0: kotlin.Any!): kotlin.Unit
|
||||
kotlin.deprecated(value = "Deprecated in Java") public final override /*1*/ /*fake_override*/ fun suspend(): kotlin.Unit
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public final override /*1*/ /*fake_override*/ fun suspend(): kotlin.Unit
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun suspend0(): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
// !DIAGNOSTICS: -JAVA_LANG_CLASS_PARAMETER_IN_ANNOTATION
|
||||
package a.b.c
|
||||
|
||||
kotlin.deprecated("aaa")
|
||||
ann1(kotlin.deprecated("aaa"))
|
||||
kotlin.Deprecated("aaa")
|
||||
ann1(kotlin.Deprecated("aaa"))
|
||||
|
||||
<!REPEATED_ANNOTATION!>a.b.c.ann1()<!>
|
||||
ann2(a.b.c.ann1())
|
||||
@@ -16,7 +16,7 @@ ann3(A.IAnn())
|
||||
annArray(kotlin.arrayOf("a"))
|
||||
fun test() = 1
|
||||
|
||||
annotation class ann1(val p: deprecated = kotlin.deprecated("aaa"))
|
||||
annotation class ann1(val p: Deprecated = kotlin.Deprecated("aaa"))
|
||||
annotation class ann2(val p: ann1 = a.b.c.ann1())
|
||||
annotation class ann3(val p: A.IAnn = A.IAnn(), val p2: A.IAnn = a.b.c.A.IAnn())
|
||||
|
||||
|
||||
+3
-3
@@ -5,7 +5,7 @@ package a {
|
||||
package a.b {
|
||||
|
||||
package a.b.c {
|
||||
kotlin.deprecated(value = "aaa") a.b.c.ann1(p = kotlin.deprecated(value = "aaa")) a.b.c.ann1() a.b.c.ann2(p = a.b.c.ann1()) a.b.c.A.IAnn() a.b.c.ann3(p = a.b.c.A.IAnn()) a.b.c.A.IAnn() a.b.c.ann3(p = a.b.c.A.IAnn()) a.b.c.annArray(p = {"a"}) internal fun test(): kotlin.Int
|
||||
kotlin.Deprecated(value = "aaa") a.b.c.ann1(p = kotlin.Deprecated(value = "aaa")) a.b.c.ann1() a.b.c.ann2(p = a.b.c.ann1()) a.b.c.A.IAnn() a.b.c.ann3(p = a.b.c.A.IAnn()) a.b.c.A.IAnn() a.b.c.ann3(p = a.b.c.A.IAnn()) a.b.c.annArray(p = {"a"}) internal fun test(): kotlin.Int
|
||||
|
||||
internal final class A {
|
||||
public constructor A()
|
||||
@@ -22,8 +22,8 @@ package a {
|
||||
}
|
||||
|
||||
kotlin.annotation.annotation() internal final class ann1 : kotlin.Annotation {
|
||||
public constructor ann1(/*0*/ p: kotlin.deprecated = ...)
|
||||
internal final val p: kotlin.deprecated
|
||||
public constructor ann1(/*0*/ p: kotlin.Deprecated = ...)
|
||||
internal final val p: kotlin.Deprecated
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
@@ -9,27 +9,27 @@ public abstract class ClassDoesNotOverrideMethod : java.util.Date {
|
||||
public open override /*1*/ /*fake_override*/ fun clone(): kotlin.Any
|
||||
public open override /*1*/ /*fake_override*/ fun compareTo(/*0*/ other: java.util.Date!): kotlin.Int
|
||||
invisible_fake final override /*1*/ /*fake_override*/ fun getCalendarDate(): sun.util.calendar.BaseCalendar.Date!
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun getDate(): kotlin.Int
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun getDay(): kotlin.Int
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun getHours(): kotlin.Int
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun getMinutes(): kotlin.Int
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun getMonth(): kotlin.Int
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun getSeconds(): kotlin.Int
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun getDate(): kotlin.Int
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun getDay(): kotlin.Int
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun getHours(): kotlin.Int
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun getMinutes(): kotlin.Int
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun getMonth(): kotlin.Int
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun getSeconds(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun getTime(): kotlin.Long
|
||||
invisible_fake final override /*1*/ /*fake_override*/ fun getTimeImpl(): kotlin.Long
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun getTimezoneOffset(): kotlin.Int
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun getYear(): kotlin.Int
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun getTimezoneOffset(): kotlin.Int
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun getYear(): kotlin.Int
|
||||
invisible_fake final override /*1*/ /*fake_override*/ fun normalize(): sun.util.calendar.BaseCalendar.Date!
|
||||
invisible_fake final override /*1*/ /*fake_override*/ fun normalize(/*0*/ p0: sun.util.calendar.BaseCalendar.Date!): sun.util.calendar.BaseCalendar.Date!
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun readObject(/*0*/ p0: java.io.ObjectInputStream!): kotlin.Unit
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun setDate(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun setHours(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun setMinutes(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun setMonth(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun setSeconds(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun setDate(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun setHours(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun setMinutes(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun setMonth(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun setSeconds(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun setTime(/*0*/ p0: kotlin.Long): kotlin.Unit
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun setYear(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun toGMTString(): kotlin.String!
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun toLocaleString(): kotlin.String!
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun setYear(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun toGMTString(): kotlin.String!
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun toLocaleString(): kotlin.String!
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun writeObject(/*0*/ p0: java.io.ObjectOutputStream!): kotlin.Unit
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open class JavaDocDeprecated {
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open class JavaDocDeprecated {
|
||||
public constructor JavaDocDeprecated()
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open fun getFoo(/*0*/ p0: kotlin.String!): kotlin.String!
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open fun getFoo(/*0*/ p0: kotlin.String!): kotlin.String!
|
||||
}
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
package test
|
||||
|
||||
public open class AnnotatedMethod() {
|
||||
public open deprecated("Deprecated in Java") fun f(): Unit { }
|
||||
public open Deprecated("Deprecated in Java") fun f(): Unit { }
|
||||
}
|
||||
|
||||
@@ -2,5 +2,5 @@ package test
|
||||
|
||||
public open class AnnotatedMethod {
|
||||
/*primary*/ public constructor AnnotatedMethod()
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open fun f(): kotlin.Unit
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open fun f(): kotlin.Unit
|
||||
}
|
||||
|
||||
+4
-4
@@ -1,10 +1,10 @@
|
||||
//ALLOW_AST_ACCESS
|
||||
package test
|
||||
|
||||
deprecated("Class") class Class {
|
||||
deprecated("Nested") class Nested
|
||||
Deprecated("Class") class Class {
|
||||
Deprecated("Nested") class Nested
|
||||
|
||||
deprecated("Inner") inner class Inner
|
||||
Deprecated("Inner") inner class Inner
|
||||
|
||||
deprecated("companion object") companion object
|
||||
Deprecated("companion object") companion object
|
||||
}
|
||||
|
||||
+4
-4
@@ -1,17 +1,17 @@
|
||||
package test
|
||||
|
||||
kotlin.deprecated(value = "Class") internal final class Class {
|
||||
kotlin.Deprecated(value = "Class") internal final class Class {
|
||||
/*primary*/ public constructor Class()
|
||||
|
||||
kotlin.deprecated(value = "companion object") public companion object Companion {
|
||||
kotlin.Deprecated(value = "companion object") public companion object Companion {
|
||||
/*primary*/ private constructor Companion()
|
||||
}
|
||||
|
||||
kotlin.deprecated(value = "Inner") internal final inner class Inner {
|
||||
kotlin.Deprecated(value = "Inner") internal final inner class Inner {
|
||||
/*primary*/ public constructor Inner()
|
||||
}
|
||||
|
||||
kotlin.deprecated(value = "Nested") internal final class Nested {
|
||||
kotlin.Deprecated(value = "Nested") internal final class Nested {
|
||||
/*primary*/ public constructor Nested()
|
||||
}
|
||||
}
|
||||
|
||||
+16
-16
@@ -9,27 +9,27 @@ public abstract class ClassDoesNotOverrideMethod : java.util.Date {
|
||||
public open override /*1*/ /*fake_override*/ fun clone(): kotlin.Any
|
||||
public open override /*1*/ /*fake_override*/ fun compareTo(/*0*/ other: java.util.Date!): kotlin.Int
|
||||
invisible_fake final override /*1*/ /*fake_override*/ fun getCalendarDate(): sun.util.calendar.BaseCalendar.Date!
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun getDate(): kotlin.Int
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun getDay(): kotlin.Int
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun getHours(): kotlin.Int
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun getMinutes(): kotlin.Int
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun getMonth(): kotlin.Int
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun getSeconds(): kotlin.Int
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun getDate(): kotlin.Int
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun getDay(): kotlin.Int
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun getHours(): kotlin.Int
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun getMinutes(): kotlin.Int
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun getMonth(): kotlin.Int
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun getSeconds(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun getTime(): kotlin.Long
|
||||
invisible_fake final override /*1*/ /*fake_override*/ fun getTimeImpl(): kotlin.Long
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun getTimezoneOffset(): kotlin.Int
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun getYear(): kotlin.Int
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun getTimezoneOffset(): kotlin.Int
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun getYear(): kotlin.Int
|
||||
invisible_fake final override /*1*/ /*fake_override*/ fun normalize(): sun.util.calendar.BaseCalendar.Date!
|
||||
invisible_fake final override /*1*/ /*fake_override*/ fun normalize(/*0*/ p0: sun.util.calendar.BaseCalendar.Date!): sun.util.calendar.BaseCalendar.Date!
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun readObject(/*0*/ p0: java.io.ObjectInputStream!): kotlin.Unit
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun setDate(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun setHours(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun setMinutes(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun setMonth(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun setSeconds(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun setDate(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun setHours(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun setMinutes(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun setMonth(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun setSeconds(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun setTime(/*0*/ p0: kotlin.Long): kotlin.Unit
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun setYear(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun toGMTString(): kotlin.String!
|
||||
kotlin.deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun toLocaleString(): kotlin.String!
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun setYear(/*0*/ p0: kotlin.Int): kotlin.Unit
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun toGMTString(): kotlin.String!
|
||||
kotlin.Deprecated(value = "Deprecated in Java") public open override /*1*/ /*fake_override*/ fun toLocaleString(): kotlin.String!
|
||||
invisible_fake open override /*1*/ /*fake_override*/ fun writeObject(/*0*/ p0: java.io.ObjectOutputStream!): kotlin.Unit
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
class A {
|
||||
|
||||
@field:kotlin.deprecated
|
||||
@field:kotlin.Deprecated
|
||||
val a = "String"
|
||||
|
||||
}
|
||||
@@ -26,7 +26,7 @@ JetFile: fqName.kt
|
||||
PsiElement(IDENTIFIER)('kotlin')
|
||||
PsiElement(DOT)('.')
|
||||
REFERENCE_EXPRESSION
|
||||
PsiElement(IDENTIFIER)('deprecated')
|
||||
PsiElement(IDENTIFIER)('Deprecated')
|
||||
PsiWhiteSpace('\n ')
|
||||
PsiElement(val)('val')
|
||||
PsiWhiteSpace(' ')
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
@field:deprecated
|
||||
@field:Deprecated
|
||||
|
||||
@field:deprecated
|
||||
@field:Deprecated
|
||||
package boo
|
||||
|
||||
@field:deprecated
|
||||
@field:Deprecated
|
||||
class A
|
||||
|
||||
@field:deprecated
|
||||
@field:Deprecated
|
||||
interface I
|
||||
|
||||
@field:deprecated
|
||||
@field:Deprecated
|
||||
fun a()
|
||||
@@ -9,7 +9,7 @@ JetFile: inWrongPlace.kt
|
||||
TYPE_REFERENCE
|
||||
USER_TYPE
|
||||
REFERENCE_EXPRESSION
|
||||
PsiElement(IDENTIFIER)('deprecated')
|
||||
PsiElement(IDENTIFIER)('Deprecated')
|
||||
PsiWhiteSpace('\n\n')
|
||||
ANNOTATION_ENTRY
|
||||
PsiElement(AT)('@')
|
||||
@@ -20,7 +20,7 @@ JetFile: inWrongPlace.kt
|
||||
TYPE_REFERENCE
|
||||
USER_TYPE
|
||||
REFERENCE_EXPRESSION
|
||||
PsiElement(IDENTIFIER)('deprecated')
|
||||
PsiElement(IDENTIFIER)('Deprecated')
|
||||
PsiWhiteSpace('\n')
|
||||
PACKAGE_DIRECTIVE
|
||||
PsiElement(package)('package')
|
||||
@@ -41,7 +41,7 @@ JetFile: inWrongPlace.kt
|
||||
TYPE_REFERENCE
|
||||
USER_TYPE
|
||||
REFERENCE_EXPRESSION
|
||||
PsiElement(IDENTIFIER)('deprecated')
|
||||
PsiElement(IDENTIFIER)('Deprecated')
|
||||
PsiWhiteSpace('\n')
|
||||
PsiElement(class)('class')
|
||||
PsiWhiteSpace(' ')
|
||||
@@ -58,7 +58,7 @@ JetFile: inWrongPlace.kt
|
||||
TYPE_REFERENCE
|
||||
USER_TYPE
|
||||
REFERENCE_EXPRESSION
|
||||
PsiElement(IDENTIFIER)('deprecated')
|
||||
PsiElement(IDENTIFIER)('Deprecated')
|
||||
PsiWhiteSpace('\n')
|
||||
PsiElement(interface)('interface')
|
||||
PsiWhiteSpace(' ')
|
||||
@@ -75,7 +75,7 @@ JetFile: inWrongPlace.kt
|
||||
TYPE_REFERENCE
|
||||
USER_TYPE
|
||||
REFERENCE_EXPRESSION
|
||||
PsiElement(IDENTIFIER)('deprecated')
|
||||
PsiElement(IDENTIFIER)('Deprecated')
|
||||
PsiWhiteSpace('\n')
|
||||
PsiElement(fun)('fun')
|
||||
PsiWhiteSpace(' ')
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
class A {
|
||||
|
||||
@field:deprecated
|
||||
@field:Deprecated
|
||||
val a = "String"
|
||||
|
||||
}
|
||||
+1
-1
@@ -22,7 +22,7 @@ JetFile: simpleFieldAnnotation.kt
|
||||
TYPE_REFERENCE
|
||||
USER_TYPE
|
||||
REFERENCE_EXPRESSION
|
||||
PsiElement(IDENTIFIER)('deprecated')
|
||||
PsiElement(IDENTIFIER)('Deprecated')
|
||||
PsiWhiteSpace('\n ')
|
||||
PsiElement(val)('val')
|
||||
PsiWhiteSpace(' ')
|
||||
|
||||
@@ -1,28 +1,28 @@
|
||||
@get:deprecated
|
||||
@set:deprecated
|
||||
@sparam:deprecated
|
||||
@get:Deprecated
|
||||
@set:Deprecated
|
||||
@sparam:Deprecated
|
||||
|
||||
@get:deprecated
|
||||
@set:deprecated
|
||||
@sparam:deprecated
|
||||
@get:Deprecated
|
||||
@set:Deprecated
|
||||
@sparam:Deprecated
|
||||
package boo
|
||||
|
||||
@get:deprecated
|
||||
@set:deprecated
|
||||
@sparam:deprecated
|
||||
@get:Deprecated
|
||||
@set:Deprecated
|
||||
@sparam:Deprecated
|
||||
class A
|
||||
|
||||
@get:deprecated
|
||||
@set:deprecated
|
||||
@sparam:deprecated
|
||||
@get:Deprecated
|
||||
@set:Deprecated
|
||||
@sparam:Deprecated
|
||||
interface I
|
||||
|
||||
@get:deprecated
|
||||
@set:deprecated
|
||||
@sparam:deprecated
|
||||
@get:Deprecated
|
||||
@set:Deprecated
|
||||
@sparam:Deprecated
|
||||
fun a()
|
||||
|
||||
@get:deprecated
|
||||
@set:deprecated
|
||||
@sparam:deprecated
|
||||
@get:Deprecated
|
||||
@set:Deprecated
|
||||
@sparam:Deprecated
|
||||
fun b()
|
||||
+18
-18
@@ -9,7 +9,7 @@ JetFile: inWrongPlace.kt
|
||||
TYPE_REFERENCE
|
||||
USER_TYPE
|
||||
REFERENCE_EXPRESSION
|
||||
PsiElement(IDENTIFIER)('deprecated')
|
||||
PsiElement(IDENTIFIER)('Deprecated')
|
||||
PsiWhiteSpace('\n')
|
||||
ANNOTATION_ENTRY
|
||||
PsiElement(AT)('@')
|
||||
@@ -20,7 +20,7 @@ JetFile: inWrongPlace.kt
|
||||
TYPE_REFERENCE
|
||||
USER_TYPE
|
||||
REFERENCE_EXPRESSION
|
||||
PsiElement(IDENTIFIER)('deprecated')
|
||||
PsiElement(IDENTIFIER)('Deprecated')
|
||||
PsiWhiteSpace('\n')
|
||||
ANNOTATION_ENTRY
|
||||
PsiElement(AT)('@')
|
||||
@@ -31,7 +31,7 @@ JetFile: inWrongPlace.kt
|
||||
TYPE_REFERENCE
|
||||
USER_TYPE
|
||||
REFERENCE_EXPRESSION
|
||||
PsiElement(IDENTIFIER)('deprecated')
|
||||
PsiElement(IDENTIFIER)('Deprecated')
|
||||
PsiWhiteSpace('\n\n')
|
||||
ANNOTATION_ENTRY
|
||||
PsiElement(AT)('@')
|
||||
@@ -42,7 +42,7 @@ JetFile: inWrongPlace.kt
|
||||
TYPE_REFERENCE
|
||||
USER_TYPE
|
||||
REFERENCE_EXPRESSION
|
||||
PsiElement(IDENTIFIER)('deprecated')
|
||||
PsiElement(IDENTIFIER)('Deprecated')
|
||||
PsiWhiteSpace('\n')
|
||||
ANNOTATION_ENTRY
|
||||
PsiElement(AT)('@')
|
||||
@@ -53,7 +53,7 @@ JetFile: inWrongPlace.kt
|
||||
TYPE_REFERENCE
|
||||
USER_TYPE
|
||||
REFERENCE_EXPRESSION
|
||||
PsiElement(IDENTIFIER)('deprecated')
|
||||
PsiElement(IDENTIFIER)('Deprecated')
|
||||
PsiWhiteSpace('\n')
|
||||
ANNOTATION_ENTRY
|
||||
PsiElement(AT)('@')
|
||||
@@ -64,7 +64,7 @@ JetFile: inWrongPlace.kt
|
||||
TYPE_REFERENCE
|
||||
USER_TYPE
|
||||
REFERENCE_EXPRESSION
|
||||
PsiElement(IDENTIFIER)('deprecated')
|
||||
PsiElement(IDENTIFIER)('Deprecated')
|
||||
PsiWhiteSpace('\n')
|
||||
PACKAGE_DIRECTIVE
|
||||
PsiElement(package)('package')
|
||||
@@ -85,7 +85,7 @@ JetFile: inWrongPlace.kt
|
||||
TYPE_REFERENCE
|
||||
USER_TYPE
|
||||
REFERENCE_EXPRESSION
|
||||
PsiElement(IDENTIFIER)('deprecated')
|
||||
PsiElement(IDENTIFIER)('Deprecated')
|
||||
PsiWhiteSpace('\n')
|
||||
ANNOTATION_ENTRY
|
||||
PsiElement(AT)('@')
|
||||
@@ -96,7 +96,7 @@ JetFile: inWrongPlace.kt
|
||||
TYPE_REFERENCE
|
||||
USER_TYPE
|
||||
REFERENCE_EXPRESSION
|
||||
PsiElement(IDENTIFIER)('deprecated')
|
||||
PsiElement(IDENTIFIER)('Deprecated')
|
||||
PsiWhiteSpace('\n')
|
||||
ANNOTATION_ENTRY
|
||||
PsiElement(AT)('@')
|
||||
@@ -107,7 +107,7 @@ JetFile: inWrongPlace.kt
|
||||
TYPE_REFERENCE
|
||||
USER_TYPE
|
||||
REFERENCE_EXPRESSION
|
||||
PsiElement(IDENTIFIER)('deprecated')
|
||||
PsiElement(IDENTIFIER)('Deprecated')
|
||||
PsiWhiteSpace('\n')
|
||||
PsiElement(class)('class')
|
||||
PsiWhiteSpace(' ')
|
||||
@@ -124,7 +124,7 @@ JetFile: inWrongPlace.kt
|
||||
TYPE_REFERENCE
|
||||
USER_TYPE
|
||||
REFERENCE_EXPRESSION
|
||||
PsiElement(IDENTIFIER)('deprecated')
|
||||
PsiElement(IDENTIFIER)('Deprecated')
|
||||
PsiWhiteSpace('\n')
|
||||
ANNOTATION_ENTRY
|
||||
PsiElement(AT)('@')
|
||||
@@ -135,7 +135,7 @@ JetFile: inWrongPlace.kt
|
||||
TYPE_REFERENCE
|
||||
USER_TYPE
|
||||
REFERENCE_EXPRESSION
|
||||
PsiElement(IDENTIFIER)('deprecated')
|
||||
PsiElement(IDENTIFIER)('Deprecated')
|
||||
PsiWhiteSpace('\n')
|
||||
ANNOTATION_ENTRY
|
||||
PsiElement(AT)('@')
|
||||
@@ -146,7 +146,7 @@ JetFile: inWrongPlace.kt
|
||||
TYPE_REFERENCE
|
||||
USER_TYPE
|
||||
REFERENCE_EXPRESSION
|
||||
PsiElement(IDENTIFIER)('deprecated')
|
||||
PsiElement(IDENTIFIER)('Deprecated')
|
||||
PsiWhiteSpace('\n')
|
||||
PsiElement(interface)('interface')
|
||||
PsiWhiteSpace(' ')
|
||||
@@ -163,7 +163,7 @@ JetFile: inWrongPlace.kt
|
||||
TYPE_REFERENCE
|
||||
USER_TYPE
|
||||
REFERENCE_EXPRESSION
|
||||
PsiElement(IDENTIFIER)('deprecated')
|
||||
PsiElement(IDENTIFIER)('Deprecated')
|
||||
PsiWhiteSpace('\n')
|
||||
ANNOTATION_ENTRY
|
||||
PsiElement(AT)('@')
|
||||
@@ -174,7 +174,7 @@ JetFile: inWrongPlace.kt
|
||||
TYPE_REFERENCE
|
||||
USER_TYPE
|
||||
REFERENCE_EXPRESSION
|
||||
PsiElement(IDENTIFIER)('deprecated')
|
||||
PsiElement(IDENTIFIER)('Deprecated')
|
||||
PsiWhiteSpace('\n')
|
||||
ANNOTATION_ENTRY
|
||||
PsiElement(AT)('@')
|
||||
@@ -185,7 +185,7 @@ JetFile: inWrongPlace.kt
|
||||
TYPE_REFERENCE
|
||||
USER_TYPE
|
||||
REFERENCE_EXPRESSION
|
||||
PsiElement(IDENTIFIER)('deprecated')
|
||||
PsiElement(IDENTIFIER)('Deprecated')
|
||||
PsiWhiteSpace('\n')
|
||||
PsiElement(fun)('fun')
|
||||
PsiWhiteSpace(' ')
|
||||
@@ -205,7 +205,7 @@ JetFile: inWrongPlace.kt
|
||||
TYPE_REFERENCE
|
||||
USER_TYPE
|
||||
REFERENCE_EXPRESSION
|
||||
PsiElement(IDENTIFIER)('deprecated')
|
||||
PsiElement(IDENTIFIER)('Deprecated')
|
||||
PsiWhiteSpace('\n')
|
||||
ANNOTATION_ENTRY
|
||||
PsiElement(AT)('@')
|
||||
@@ -216,7 +216,7 @@ JetFile: inWrongPlace.kt
|
||||
TYPE_REFERENCE
|
||||
USER_TYPE
|
||||
REFERENCE_EXPRESSION
|
||||
PsiElement(IDENTIFIER)('deprecated')
|
||||
PsiElement(IDENTIFIER)('Deprecated')
|
||||
PsiWhiteSpace('\n')
|
||||
ANNOTATION_ENTRY
|
||||
PsiElement(AT)('@')
|
||||
@@ -227,7 +227,7 @@ JetFile: inWrongPlace.kt
|
||||
TYPE_REFERENCE
|
||||
USER_TYPE
|
||||
REFERENCE_EXPRESSION
|
||||
PsiElement(IDENTIFIER)('deprecated')
|
||||
PsiElement(IDENTIFIER)('Deprecated')
|
||||
PsiWhiteSpace('\n')
|
||||
PsiElement(fun)('fun')
|
||||
PsiWhiteSpace(' ')
|
||||
|
||||
+2
-2
@@ -17,7 +17,7 @@ interface Bar
|
||||
|
||||
fun <P> funTypeParameterWithTwoUpperBounds() where P : Foo, P : Bar = 17
|
||||
|
||||
deprecated("") fun deprecatedFun()
|
||||
Deprecated("") fun deprecatedFun()
|
||||
|
||||
//package rendererTest
|
||||
//public fun pub(): kotlin.Unit defined in rendererTest
|
||||
@@ -35,4 +35,4 @@ deprecated("") fun deprecatedFun()
|
||||
//internal interface Bar defined in rendererTest
|
||||
//internal fun <P : rendererTest.Foo> funTypeParameterWithTwoUpperBounds(): kotlin.Int where P : rendererTest.Bar defined in rendererTest
|
||||
//<P : rendererTest.Foo & rendererTest.Bar> defined in rendererTest.funTypeParameterWithTwoUpperBounds
|
||||
//kotlin.deprecated internal fun deprecatedFun(): kotlin.Unit defined in rendererTest
|
||||
//kotlin.Deprecated internal fun deprecatedFun(): kotlin.Unit defined in rendererTest
|
||||
|
||||
+2
-2
@@ -11,7 +11,7 @@ private var private = 5
|
||||
public val Int.ext: Int
|
||||
get() {}
|
||||
|
||||
deprecated("") val deprecatedVal = 5
|
||||
Deprecated("") val deprecatedVal = 5
|
||||
|
||||
public val <T> T.extWithTwoUpperBounds: Int where T : CharSequence, T : Number
|
||||
get() {}
|
||||
@@ -23,7 +23,7 @@ get() {}
|
||||
//private var private: kotlin.Int defined in rendererTest
|
||||
//public val kotlin.Int.ext: kotlin.Int defined in rendererTest
|
||||
//public fun kotlin.Int.<get-ext>(): kotlin.Int defined in rendererTest
|
||||
//kotlin.deprecated internal val deprecatedVal: kotlin.Int defined in rendererTest
|
||||
//kotlin.Deprecated internal val deprecatedVal: kotlin.Int defined in rendererTest
|
||||
//public val <T : kotlin.CharSequence> T.extWithTwoUpperBounds: kotlin.Int where T : kotlin.Number defined in rendererTest
|
||||
//<T : kotlin.CharSequence & kotlin.Number> defined in rendererTest.extWithTwoUpperBounds
|
||||
//public fun T.<get-extWithTwoUpperBounds>(): kotlin.Int defined in rendererTest
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
deprecated("") class MyClass() {
|
||||
Deprecated("") class MyClass() {
|
||||
}
|
||||
|
||||
// TESTED_OBJECT_KIND: class
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class MyClass {
|
||||
deprecated("") companion object {
|
||||
Deprecated("") companion object {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
deprecated("") enum class MyEnum {
|
||||
Deprecated("") enum class MyEnum {
|
||||
FIRST
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class MyClass() {
|
||||
deprecated("") public class MyInnerClass() {}
|
||||
Deprecated("") public class MyInnerClass() {}
|
||||
}
|
||||
|
||||
// TESTED_OBJECT_KIND: class
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
deprecated("") public interface MyTrait {
|
||||
Deprecated("") public interface MyTrait {
|
||||
}
|
||||
|
||||
// TESTED_OBJECT_KIND: class
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
class MyClass() {
|
||||
val test = ""
|
||||
@deprecated("") get
|
||||
@Deprecated("") get
|
||||
}
|
||||
|
||||
// TESTED_OBJECT_KIND: function
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
class MyClass() {
|
||||
var test = ""
|
||||
@deprecated("") set
|
||||
@Deprecated("") set
|
||||
}
|
||||
|
||||
// TESTED_OBJECT_KIND: function
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
class MyClass() { }
|
||||
|
||||
deprecated("") fun MyClass.test() {}
|
||||
Deprecated("") fun MyClass.test() {}
|
||||
|
||||
// TESTED_OBJECT_KIND: function
|
||||
// TESTED_OBJECTS: _DefaultPackage, test
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class MyClass() {
|
||||
deprecated("") fun test() {}
|
||||
Deprecated("") fun test() {}
|
||||
}
|
||||
|
||||
// TESTED_OBJECT_KIND: function
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
class MyClass() {
|
||||
companion object {
|
||||
deprecated("") fun test() {}
|
||||
Deprecated("") fun test() {}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
class MyClass() {
|
||||
val test: Int
|
||||
@deprecated("") get(): Int { return 0 }
|
||||
@Deprecated("") get(): Int { return 0 }
|
||||
}
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
class MyClass() {
|
||||
deprecated("") val test = ""
|
||||
Deprecated("") val test = ""
|
||||
}
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
class MyClass(@get:deprecated("") val test: Int) {}
|
||||
class MyClass(@get:Deprecated("") val test: Int) {}
|
||||
|
||||
// TESTED_OBJECT_KIND: function
|
||||
// TESTED_OBJECTS: MyClass, getTest
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
class MyClass() {
|
||||
var test = 1
|
||||
@deprecated("") set(i: Int) { test = i }
|
||||
@Deprecated("") set(i: Int) { test = i }
|
||||
}
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
class MyClass() {
|
||||
deprecated("") var test = ""
|
||||
Deprecated("") var test = ""
|
||||
}
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
class MyClass(@set:deprecated("") var test: Int) {}
|
||||
class MyClass(@set:Deprecated("") var test: Int) {}
|
||||
|
||||
|
||||
// TESTED_OBJECT_KIND: function
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
deprecated("") fun test() {}
|
||||
Deprecated("") fun test() {}
|
||||
|
||||
// TESTED_OBJECT_KIND: function
|
||||
// TESTED_OBJECTS: _DefaultPackage, test
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class MyClass() {
|
||||
deprecated("") public val test: Int = 0
|
||||
Deprecated("") public val test: Int = 0
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
deprecated("") val test: Int = 0
|
||||
Deprecated("") val test: Int = 0
|
||||
|
||||
// TESTED_OBJECT_KIND: property
|
||||
// TESTED_OBJECTS: _DefaultPackage$, test
|
||||
|
||||
@@ -182,7 +182,7 @@ public class KotlinLightClassCoherenceTest extends KotlinAsJavaTestBase {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testDeprecated() throws Exception {
|
||||
public void testDeprecatedClass() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ public abstract class KotlinLightClassStructureTest extends KotlinAsJavaTestBase
|
||||
}
|
||||
|
||||
public void testDeprecation() {
|
||||
checkModifiers("test.Deprecated", PUBLIC, FINAL, DEPRECATED);
|
||||
checkModifiers("test.DeprecatedClass", PUBLIC, FINAL, DEPRECATED);
|
||||
checkModifiers("test.DeprecatedFQN", PUBLIC, FINAL, DEPRECATED);
|
||||
checkModifiers("test.DeprecatedFQNSpaces", PUBLIC, FINAL, DEPRECATED);
|
||||
checkModifiers("test.DeprecatedWithBrackets", PUBLIC, FINAL, DEPRECATED);
|
||||
|
||||
@@ -54,7 +54,7 @@ public class AnnotationGenTest extends CodegenTestCase {
|
||||
}
|
||||
|
||||
public void testPropField() throws Exception {
|
||||
ClassLoader loader = loadFileGetClassLoader("@[Deprecated] var x = 0");
|
||||
ClassLoader loader = loadFileGetClassLoader("@[java.lang.Deprecated] var x = 0");
|
||||
Class<?> packageClass = getPackageClass(loader);
|
||||
assertNull(packageClass.getDeclaredMethod("getX").getAnnotation(Deprecated.class));
|
||||
assertNull(packageClass.getDeclaredMethod("setX", int.class).getAnnotation(Deprecated.class));
|
||||
@@ -66,7 +66,7 @@ public class AnnotationGenTest extends CodegenTestCase {
|
||||
|
||||
public void testPropGetter() throws Exception {
|
||||
ClassLoader loader = loadFileGetClassLoader("var x = 0\n" +
|
||||
"@[Deprecated] get");
|
||||
"@[java.lang.Deprecated] get");
|
||||
Class<?> packageClass = getPackageClass(loader);
|
||||
assertNotNull(packageClass.getDeclaredMethod("getX").getAnnotation(Deprecated.class));
|
||||
assertNull(packageClass.getDeclaredMethod("setX", int.class).getAnnotation(Deprecated.class));
|
||||
@@ -78,7 +78,7 @@ public class AnnotationGenTest extends CodegenTestCase {
|
||||
|
||||
public void testPropSetter() throws Exception {
|
||||
ClassLoader loader = loadFileGetClassLoader("var x = 0\n" +
|
||||
"@[Deprecated] set");
|
||||
"@[java.lang.Deprecated] set");
|
||||
Class<?> packageClass = getPackageClass(loader);
|
||||
assertNull(packageClass.getDeclaredMethod("getX").getAnnotation(Deprecated.class));
|
||||
assertNotNull(packageClass.getDeclaredMethod("setX", int.class).getAnnotation(Deprecated.class));
|
||||
@@ -89,7 +89,7 @@ public class AnnotationGenTest extends CodegenTestCase {
|
||||
}
|
||||
|
||||
public void testAnnotationForParamInTopLevelFunction() throws Exception {
|
||||
ClassLoader loader = loadFileGetClassLoader("fun x(@[Deprecated] i: Int) {}");
|
||||
ClassLoader loader = loadFileGetClassLoader("fun x(@[java.lang.Deprecated] i: Int) {}");
|
||||
Class<?> packageClass = getPackageClass(loader);
|
||||
Method packageClassMethod = packageClass.getMethod("x", int.class);
|
||||
assertNotNull(packageClassMethod);
|
||||
@@ -101,7 +101,7 @@ public class AnnotationGenTest extends CodegenTestCase {
|
||||
}
|
||||
|
||||
public void testAnnotationForParamInInstanceFunction() throws NoSuchFieldException, NoSuchMethodException {
|
||||
loadText("class A() { fun x(@[Deprecated] i: Int) {}}");
|
||||
loadText("class A() { fun x(@[java.lang.Deprecated] i: Int) {}}");
|
||||
Class<?> aClass = generateClass("A");
|
||||
Method x = aClass.getMethod("x", int.class);
|
||||
assertNotNull(x);
|
||||
@@ -111,7 +111,7 @@ public class AnnotationGenTest extends CodegenTestCase {
|
||||
}
|
||||
|
||||
public void testAnnotationForParamInInstanceExtensionFunction() throws NoSuchFieldException, NoSuchMethodException {
|
||||
loadText("class A() { fun String.x(@[Deprecated] i: Int) {}}");
|
||||
loadText("class A() { fun String.x(@[java.lang.Deprecated] i: Int) {}}");
|
||||
Class<?> aClass = generateClass("A");
|
||||
Method x = aClass.getMethod("x", String.class, int.class);
|
||||
assertNotNull(x);
|
||||
@@ -121,7 +121,7 @@ public class AnnotationGenTest extends CodegenTestCase {
|
||||
}
|
||||
|
||||
public void testParamInConstructor() throws NoSuchFieldException, NoSuchMethodException {
|
||||
loadText("class A (@[Deprecated] x: Int) {}");
|
||||
loadText("class A (@[java.lang.Deprecated] x: Int) {}");
|
||||
Class<?> aClass = generateClass("A");
|
||||
Constructor constructor = aClass.getDeclaredConstructor(int.class);
|
||||
assertNotNull(constructor);
|
||||
@@ -131,7 +131,7 @@ public class AnnotationGenTest extends CodegenTestCase {
|
||||
}
|
||||
|
||||
public void testParamInEnumConstructor() throws NoSuchFieldException, NoSuchMethodException {
|
||||
loadText("enum class E(@[Deprecated] p: String)");
|
||||
loadText("enum class E(@[java.lang.Deprecated] p: String)");
|
||||
Class<?> klass = generateClass("E");
|
||||
Constructor constructor = klass.getDeclaredConstructor(String.class, int.class, String.class);
|
||||
assertNotNull(constructor);
|
||||
@@ -141,7 +141,7 @@ public class AnnotationGenTest extends CodegenTestCase {
|
||||
}
|
||||
|
||||
public void testParamInInnerConstructor() throws NoSuchFieldException, NoSuchMethodException {
|
||||
loadText("class Outer { inner class Inner(@[Deprecated] x: Int) }");
|
||||
loadText("class Outer { inner class Inner(@[java.lang.Deprecated] x: Int) }");
|
||||
Class<?> outer = generateClass("Outer");
|
||||
Class<?> inner = outer.getDeclaredClasses()[0];
|
||||
Constructor constructor = inner.getDeclaredConstructor(outer, int.class);
|
||||
@@ -152,7 +152,7 @@ public class AnnotationGenTest extends CodegenTestCase {
|
||||
}
|
||||
|
||||
public void testPropFieldInConstructor() throws NoSuchFieldException, NoSuchMethodException {
|
||||
loadText("class A (@field:Deprecated @param:Deprecated var x: Int) {}");
|
||||
loadText("class A (@field:java.lang.Deprecated @param:java.lang.Deprecated var x: Int) {}");
|
||||
Class<?> aClass = generateClass("A");
|
||||
Constructor constructor = aClass.getDeclaredConstructor(int.class);
|
||||
assertNotNull(constructor);
|
||||
@@ -199,7 +199,7 @@ public class AnnotationGenTest extends CodegenTestCase {
|
||||
}
|
||||
|
||||
public void testConstructor() throws NoSuchFieldException, NoSuchMethodException {
|
||||
loadText("class A @[Deprecated] constructor() {}");
|
||||
loadText("class A @[java.lang.Deprecated] constructor() {}");
|
||||
Class<?> aClass = generateClass("A");
|
||||
Constructor x = aClass.getDeclaredConstructor();
|
||||
Deprecated annotation = (Deprecated) x.getAnnotation(Deprecated.class);
|
||||
@@ -207,7 +207,7 @@ public class AnnotationGenTest extends CodegenTestCase {
|
||||
}
|
||||
|
||||
public void testMethod() throws Exception {
|
||||
ClassLoader loader = loadFileGetClassLoader("@[Deprecated] fun x () {}");
|
||||
ClassLoader loader = loadFileGetClassLoader("@[java.lang.Deprecated] fun x () {}");
|
||||
|
||||
Class<?> packageClass = getPackageClass(loader);
|
||||
Method packageClassMethod = packageClass.getDeclaredMethod("x");
|
||||
@@ -220,7 +220,7 @@ public class AnnotationGenTest extends CodegenTestCase {
|
||||
}
|
||||
|
||||
public void testClass() throws NoSuchFieldException, NoSuchMethodException {
|
||||
loadText("@[Deprecated] class A () {}");
|
||||
loadText("@[java.lang.Deprecated] class A () {}");
|
||||
Class aClass = generateClass("A");
|
||||
Deprecated annotation = (Deprecated) aClass.getAnnotation(Deprecated.class);
|
||||
assertNotNull(annotation);
|
||||
|
||||
@@ -37,7 +37,7 @@ public annotation(mustBeDocumented = true) class data
|
||||
*/
|
||||
target(CLASSIFIER, FUNCTION, PROPERTY, ANNOTATION_CLASS, CONSTRUCTOR, PROPERTY_SETTER, PROPERTY_GETTER,
|
||||
LOCAL_VARIABLE, VALUE_PARAMETER)
|
||||
public annotation(mustBeDocumented = true) class deprecated(val value: String, val replaceWith: ReplaceWith = ReplaceWith(""))
|
||||
public annotation(mustBeDocumented = true) class Deprecated(val value: String, val replaceWith: ReplaceWith = ReplaceWith(""))
|
||||
|
||||
/**
|
||||
* Specifies a code fragment that can be used to replace a deprecated function, property or class. Tools such
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@ public object JavaAnnotationMapper {
|
||||
|
||||
private val JAVA_TARGET_FQ_NAME = FqName(Target::class.java.canonicalName)
|
||||
private val JAVA_RETENTION_FQ_NAME = FqName(Retention::class.java.canonicalName)
|
||||
private val JAVA_DEPRECATED_FQ_NAME = FqName(Deprecated::class.java.canonicalName)
|
||||
private val JAVA_DEPRECATED_FQ_NAME = FqName(java.lang.Deprecated::class.java.canonicalName)
|
||||
private val JAVA_DOCUMENTED_FQ_NAME = FqName(Documented::class.java.canonicalName)
|
||||
// Java8-specific thing
|
||||
private val JAVA_REPEATABLE_FQ_NAME = FqName("java.lang.annotation.Repeatable")
|
||||
|
||||
@@ -170,7 +170,7 @@ public class KotlinBuiltIns {
|
||||
public final FqNameUnsafe _double = fqNameUnsafe("Double");
|
||||
|
||||
public final FqName data = fqName("data");
|
||||
public final FqName deprecated = fqName("deprecated");
|
||||
public final FqName deprecated = fqName("Deprecated");
|
||||
public final FqName tailRecursive = fqName("tailrec");
|
||||
public final FqName tailRecursiveDeprecated = fqName("tailRecursive");
|
||||
public final FqName inline = fqName("inline");
|
||||
@@ -389,7 +389,7 @@ public class KotlinBuiltIns {
|
||||
|
||||
@NotNull
|
||||
public ClassDescriptor getDeprecatedAnnotation() {
|
||||
return getBuiltInClassByName("deprecated");
|
||||
return getBuiltInClassByName(FQ_NAMES.deprecated.shortName());
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fun foo1() {}
|
||||
deprecated("Use foo3 instead") fun foo2() {}
|
||||
Deprecated("Use foo3 instead") fun foo2() {}
|
||||
fun foo3() {}
|
||||
|
||||
fun test() {
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
class MyClassA
|
||||
deprecated class MyClassB
|
||||
Deprecated class MyClassB
|
||||
class MyClassC
|
||||
|
||||
fun foo(myCla<caret>)
|
||||
|
||||
+4
-2
@@ -20,6 +20,7 @@ import com.intellij.openapi.editor.Editor
|
||||
import com.intellij.openapi.util.TextRange
|
||||
import com.intellij.psi.PsiDocumentManager
|
||||
import com.intellij.psi.codeStyle.CodeStyleManager
|
||||
import org.jetbrains.kotlin.builtins.KotlinBuiltIns
|
||||
import org.jetbrains.kotlin.descriptors.DeclarationDescriptorWithVisibility
|
||||
import org.jetbrains.kotlin.descriptors.FunctionDescriptor
|
||||
import org.jetbrains.kotlin.descriptors.PackageFragmentDescriptor
|
||||
@@ -44,7 +45,7 @@ import java.util.ArrayList
|
||||
public class DeprecatedCallableAddReplaceWithInspection : IntentionBasedInspection<JetCallableDeclaration>(DeprecatedCallableAddReplaceWithIntention())
|
||||
|
||||
public class DeprecatedCallableAddReplaceWithIntention : JetSelfTargetingRangeIntention<JetCallableDeclaration>(
|
||||
javaClass(), "Add 'replaceWith' argument to specify replacement pattern", "Add 'replaceWith' argument to 'deprecated' annotation"
|
||||
javaClass(), "Add 'replaceWith' argument to specify replacement pattern", "Add 'replaceWith' argument to 'Deprecated' annotation"
|
||||
) {
|
||||
private class ReplaceWith(val expression: String, vararg val imports: String)
|
||||
|
||||
@@ -112,7 +113,8 @@ public class DeprecatedCallableAddReplaceWithIntention : JetSelfTargetingRangeIn
|
||||
|
||||
//TODO
|
||||
val descriptor = resolvedCall.getResultingDescriptor().getContainingDeclaration()
|
||||
if (DescriptorUtils.getFqName(descriptor).asString() != "kotlin.deprecated") continue
|
||||
val descriptorFqName = DescriptorUtils.getFqName(descriptor).toSafe()
|
||||
if (descriptorFqName != KotlinBuiltIns.FQ_NAMES.deprecated) continue
|
||||
|
||||
val replaceWithArguments = resolvedCall.getValueArguments().entrySet()
|
||||
.single { it.key.getName().asString() == "replaceWith"/*TODO: kotlin.deprecated::replaceWith.name*/ }.value
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
<error>@file:kotlin.deprecated("message")</error>
|
||||
<error>@file:kotlin.Deprecated("message")</error>
|
||||
@file:Suppress(<error>BAR</error>)
|
||||
<error>@file:Suppress(BAZ)</error>
|
||||
|
||||
<error><error>@<error>k</error>otlin.deprecated("message")</error></error>
|
||||
<error><error>@<error>k</error>otlin.Deprecated("message")</error></error>
|
||||
<error>@<error>S</error>uppress(<error>BAR</error>)</error>
|
||||
<error>@<error>S</error>uppress(BAZ)</error>
|
||||
|
||||
|
||||
@@ -6,5 +6,5 @@ package test
|
||||
kotlin.data dependency.A dependency.B dependency.C internal final class Annotations public constructor() {
|
||||
kotlin.inline dependency.A dependency.B dependency.C internal final val p: @[dependency.B] kotlin.Int /* compiled code */
|
||||
|
||||
kotlin.inline dependency.A dependency.B dependency.C internal final fun f(dependency.A dependency.B dependency.C kotlin.deprecated i: @[dependency.A] kotlin.Int): kotlin.Unit { /* compiled code */ }
|
||||
kotlin.inline dependency.A dependency.B dependency.C internal final fun f(dependency.A dependency.B dependency.C kotlin.Deprecated i: @[dependency.A] kotlin.Int): kotlin.Unit { /* compiled code */ }
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ import dependency.*
|
||||
|
||||
data A("a") B(1) C class Annotations {
|
||||
|
||||
inline A("f") B(2) C fun f(A("i") B(3) C deprecated("1") i: @A("int") Int) {
|
||||
inline A("f") B(2) C fun f(A("i") B(3) C Deprecated("1") i: @A("int") Int) {
|
||||
}
|
||||
|
||||
inline A("p") B(3) C val p: @B(4) Int = 2
|
||||
|
||||
+2
-2
@@ -5,8 +5,8 @@ class <info textAttributesKey="KOTLIN_CLASS">TheClass</info> : <info textAttribu
|
||||
}
|
||||
|
||||
<info textAttributesKey="KOTLIN_ANNOTATION">annotation</info> class <info textAttributesKey="KOTLIN_ANNOTATION">magnificent</info>
|
||||
<info textAttributesKey="KOTLIN_ANNOTATION">annotation</info> class <info textAttributesKey="KOTLIN_ANNOTATION">deprecated</info>
|
||||
<info textAttributesKey="KOTLIN_ANNOTATION">annotation</info> class <info textAttributesKey="KOTLIN_ANNOTATION">Deprecated</info>
|
||||
|
||||
<info textAttributesKey="KOTLIN_ANNOTATION">@deprecated</info>
|
||||
<info textAttributesKey="KOTLIN_ANNOTATION">@Deprecated</info>
|
||||
<info textAttributesKey="KOTLIN_ANNOTATION">magnificent</info> <info textAttributesKey="KOTLIN_BUILTIN_ANNOTATION">abstract</info> class <info textAttributesKey="KOTLIN_ABSTRACT_CLASS">AbstractClass</info><<info textAttributesKey="KOTLIN_TYPE_PARAMETER">T</info>> {
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ package test
|
||||
|
||||
import java.util.ArrayList
|
||||
|
||||
deprecated("Use A instead") open class MyClass {}
|
||||
Deprecated("Use A instead") open class MyClass {}
|
||||
|
||||
fun test() {
|
||||
val a : <warning descr="[DEPRECATED_SYMBOL_WITH_MESSAGE] 'MyClass' is deprecated. Use A instead">MyClass</warning>? = null
|
||||
|
||||
+2
-2
@@ -13,13 +13,13 @@ fun test() {
|
||||
}
|
||||
|
||||
class MyClass(): MyTrait {
|
||||
deprecated("Use A instead") companion object {
|
||||
Deprecated("Use A instead") companion object {
|
||||
val test: String = ""
|
||||
}
|
||||
}
|
||||
|
||||
interface MyTrait {
|
||||
deprecated("Use A instead") companion object {
|
||||
Deprecated("Use A instead") companion object {
|
||||
val test: String = ""
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
deprecated("does nothing good")
|
||||
Deprecated("does nothing good")
|
||||
fun Any.doNothing() = this.toString() // "this" should not be marked as deprecated despite it referes to deprecated function
|
||||
|
||||
// NO_CHECK_INFOS
|
||||
|
||||
+4
-4
@@ -6,14 +6,14 @@ fun test() {
|
||||
<warning descr="[DEPRECATED_SYMBOL_WITH_MESSAGE] 'test4(Int, Int): Unit' is deprecated. Use A instead">test4</warning>(1, 2)
|
||||
}
|
||||
|
||||
deprecated("Use A instead") fun test1() { }
|
||||
deprecated("Use A instead") fun test4(x: Int, y: Int) { x + y }
|
||||
Deprecated("Use A instead") fun test1() { }
|
||||
Deprecated("Use A instead") fun test4(x: Int, y: Int) { x + y }
|
||||
|
||||
class MyClass() {
|
||||
deprecated("Use A instead") fun test2() {}
|
||||
Deprecated("Use A instead") fun test2() {}
|
||||
|
||||
companion object {
|
||||
deprecated("Use A instead") fun test3() {}
|
||||
Deprecated("Use A instead") fun test3() {}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
class MyClass {}
|
||||
|
||||
deprecated("Use A instead") fun MyClass.get(i: MyClass): MyClass { return i }
|
||||
Deprecated("Use A instead") fun MyClass.get(i: MyClass): MyClass { return i }
|
||||
|
||||
fun test() {
|
||||
val x1 = MyClass()
|
||||
|
||||
+4
-4
@@ -9,13 +9,13 @@ fun test() {
|
||||
|
||||
class MyClass() {
|
||||
public val test1: String = ""
|
||||
@deprecated("Use A instead") get
|
||||
@Deprecated("Use A instead") get
|
||||
|
||||
public var test2: String = ""
|
||||
@deprecated("Use A instead") get
|
||||
@Deprecated("Use A instead") get
|
||||
|
||||
deprecated("Use A instead") public val test3: String = ""
|
||||
@deprecated("Use A instead") get
|
||||
Deprecated("Use A instead") public val test3: String = ""
|
||||
@Deprecated("Use A instead") get
|
||||
}
|
||||
|
||||
// NO_CHECK_INFOS
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ class MyClass {
|
||||
val i = 0
|
||||
}
|
||||
|
||||
deprecated("Use A instead") fun MyClass.inc(): MyClass { return MyClass() }
|
||||
Deprecated("Use A instead") fun MyClass.inc(): MyClass { return MyClass() }
|
||||
|
||||
fun test() {
|
||||
var x3 = MyClass()
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
deprecated(<error>)</error>
|
||||
Deprecated(<error>)</error>
|
||||
fun foo() {}
|
||||
deprecated(<error>false</error>)
|
||||
Deprecated(<error>false</error>)
|
||||
fun boo() {}
|
||||
|
||||
fun far() = <warning descr="[DEPRECATED_SYMBOL] 'foo(): Unit' is deprecated.">foo</warning>()
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
class MyRunnable() {}
|
||||
|
||||
deprecated("Use A instead") fun MyRunnable.invoke() {
|
||||
Deprecated("Use A instead") fun MyRunnable.invoke() {
|
||||
}
|
||||
|
||||
fun test() {
|
||||
|
||||
+8
-8
@@ -2,18 +2,18 @@ class MyClass {
|
||||
val i = 0
|
||||
}
|
||||
|
||||
deprecated("Use A instead") fun MyClass.minus(i: MyClass) { i.i }
|
||||
deprecated("Use A instead") fun MyClass.div(i: MyClass) { i.i }
|
||||
deprecated("Use A instead") fun MyClass.times(i: MyClass) { i.i }
|
||||
Deprecated("Use A instead") fun MyClass.minus(i: MyClass) { i.i }
|
||||
Deprecated("Use A instead") fun MyClass.div(i: MyClass) { i.i }
|
||||
Deprecated("Use A instead") fun MyClass.times(i: MyClass) { i.i }
|
||||
|
||||
deprecated("Use A instead") fun MyClass.not() { }
|
||||
deprecated("Use A instead") fun MyClass.plus() { }
|
||||
Deprecated("Use A instead") fun MyClass.not() { }
|
||||
Deprecated("Use A instead") fun MyClass.plus() { }
|
||||
|
||||
deprecated("Use A instead") fun MyClass.contains(i: MyClass): Boolean { i.i; return false }
|
||||
Deprecated("Use A instead") fun MyClass.contains(i: MyClass): Boolean { i.i; return false }
|
||||
|
||||
deprecated("Use A instead") fun MyClass.plusAssign(i: MyClass) { i.i }
|
||||
Deprecated("Use A instead") fun MyClass.plusAssign(i: MyClass) { i.i }
|
||||
|
||||
deprecated("Use A instead") fun MyClass.rangeTo(i: MyClass): IntRange { return IntRange(i.i, i.i) }
|
||||
Deprecated("Use A instead") fun MyClass.rangeTo(i: MyClass): IntRange { return IntRange(i.i, i.i) }
|
||||
|
||||
fun test() {
|
||||
val x1 = MyClass()
|
||||
|
||||
+6
-6
@@ -8,16 +8,16 @@ fun test() {
|
||||
MyClass.<warning descr="[DEPRECATED_SYMBOL_WITH_MESSAGE] 'test6: String' is deprecated. Use A instead">test6</warning>
|
||||
}
|
||||
|
||||
deprecated("Use A instead") val test1: String = ""
|
||||
deprecated("Use A instead") var test4: String = ""
|
||||
Deprecated("Use A instead") val test1: String = ""
|
||||
Deprecated("Use A instead") var test4: String = ""
|
||||
|
||||
class MyClass() {
|
||||
deprecated("Use A instead") val test2: String = ""
|
||||
deprecated("Use A instead") var test5: String = ""
|
||||
Deprecated("Use A instead") val test2: String = ""
|
||||
Deprecated("Use A instead") var test5: String = ""
|
||||
|
||||
companion object {
|
||||
deprecated("Use A instead") val test3: String = ""
|
||||
deprecated("Use A instead") var test6: String = ""
|
||||
Deprecated("Use A instead") val test3: String = ""
|
||||
Deprecated("Use A instead") var test6: String = ""
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ class MyClass {
|
||||
val i = 1
|
||||
}
|
||||
|
||||
deprecated("Use A instead") fun MyClass.rangeTo(i: MyClass): Iterable<Int> {
|
||||
Deprecated("Use A instead") fun MyClass.rangeTo(i: MyClass): Iterable<Int> {
|
||||
i.i
|
||||
throw Exception()
|
||||
}
|
||||
|
||||
+2
-2
@@ -19,11 +19,11 @@ fun test() {
|
||||
|
||||
class MyClass() {
|
||||
public var test1: Int = 0
|
||||
@deprecated("Use A instead") set
|
||||
@Deprecated("Use A instead") set
|
||||
}
|
||||
|
||||
public var test2: Int = 0
|
||||
@deprecated("Use A instead") set
|
||||
@Deprecated("Use A instead") set
|
||||
|
||||
// NO_CHECK_INFOS
|
||||
// NO_CHECK_WEAK_WARNINGS
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user