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
+3 -3
View File
@@ -9,7 +9,7 @@ Anon6("x", "y")
Anon7(String::class, StringBuilder::class)
Anon8(classes = arrayOf(String::class, StringBuilder::class))
class C {
Anon5(1) deprecated("") private val field1 = 0
Anon5(1) Deprecated("") private val field1 = 0
Anon5(1)
private val field2 = 0
@@ -20,8 +20,8 @@ class C {
var field4 = 0
Anon6
fun foo(deprecated("") p1: Int, deprecated("") Anon5(2) p2: Char) {
@deprecated("") @Anon5(3) val c = 'a'
fun foo(Deprecated("") p1: Int, Deprecated("") Anon5(2) p2: Char) {
@Deprecated("") @Anon5(3) val c = 'a'
}
Anon5(1) fun bar() {
@@ -1,2 +1,2 @@
class C deprecated("")
class C Deprecated("")
constructor()
@@ -4,7 +4,7 @@ class A
Anon5(10)
constructor(private val a: Int, private val b: Int) {
deprecated("") // this constructor will not be replaced by default parameter value in primary because of this annotation
Deprecated("") // this constructor will not be replaced by default parameter value in primary because of this annotation
public constructor(a: Int) : this(a, 1) {
}
}
@@ -1,3 +1,3 @@
import java.lang.SuppressWarnings
class C(deprecated("") private val p1: Int, deprecated("") private val myP2: Int, deprecated("") SuppressWarnings("x") public var p3: Int)
class C(Deprecated("") private val p1: Int, Deprecated("") private val myP2: Int, Deprecated("") SuppressWarnings("x") public var p3: Int)
+1 -1
View File
@@ -1,5 +1,5 @@
/**
* This is a deprecated class.
*/
deprecated("do not use")
Deprecated("do not use")
class C
@@ -1,2 +1,2 @@
deprecated("do not use")
Deprecated("do not use")
class C
@@ -1,5 +1,5 @@
class A {
deprecated("")
Deprecated("")
Volatile var field1 = 0
Transient var field2 = 1
+1 -1
View File
@@ -24,7 +24,7 @@ class A {
return bar1(null)
}
deprecated("")
Deprecated("")
public fun f() {
f(1)
}