Deprecate deprecated in favor of Deprecated

This commit is contained in:
Denis Zharkov
2015-09-01 19:59:19 +03:00
parent 952d45dc8b
commit 31244edec9
444 changed files with 686 additions and 688 deletions
@@ -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 -1
View File
@@ -1,6 +1,6 @@
import <!DEPRECATED_SYMBOL_WITH_MESSAGE!>C<!> as C2
deprecated("obsolete")
Deprecated("obsolete")
class C {
fun use() {}
}
+1 -1
View File
@@ -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
@@ -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 = ""
}
@@ -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