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,6 +1,6 @@
// "Replace with 'newFun()'" "true"
@deprecated("", ReplaceWith("newFun()"))
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun(p: Int) {
newFun()
}
@@ -1,6 +1,6 @@
// "Replace with 'newFun()'" "true"
@deprecated("", ReplaceWith("newFun()"))
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun(p: Int) {
newFun()
}
@@ -1,7 +1,7 @@
// "Replace with 'newFun()'" "true"
class C {
@deprecated("", ReplaceWith("newFun()"))
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun() {
newFun()
}
@@ -1,7 +1,7 @@
// "Replace with 'newFun()'" "true"
class C {
@deprecated("", ReplaceWith("newFun()"))
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun() {
newFun()
}
@@ -1,6 +1,6 @@
// "Replace with 'newFun()'" "true"
@deprecated("", ReplaceWith("newFun()"))
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun(p: Int): Int {
return newFun()
}
@@ -1,6 +1,6 @@
// "Replace with 'newFun()'" "true"
@deprecated("", ReplaceWith("newFun()"))
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun(p: Int): Int {
return newFun()
}
@@ -1,6 +1,6 @@
// "Replace with 'newFun()'" "true"
@deprecated("", ReplaceWith("newFun()"))
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun(p: Int?): Int {
return newFun()
}
@@ -1,6 +1,6 @@
// "Replace with 'newFun()'" "true"
@deprecated("", ReplaceWith("newFun()"))
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun(p: Int?): Int {
return newFun()
}
@@ -1,6 +1,6 @@
// "Replace with 'newFun(p2)'" "true"
@deprecated("", ReplaceWith("newFun(p2)"))
@Deprecated("", ReplaceWith("newFun(p2)"))
fun oldFun(p1: Int, p2: Int): Boolean {
return newFun(p2)
}
@@ -1,6 +1,6 @@
// "Replace with 'newFun(p2)'" "true"
@deprecated("", ReplaceWith("newFun(p2)"))
@Deprecated("", ReplaceWith("newFun(p2)"))
fun oldFun(p1: Int, p2: Int): Boolean {
return newFun(p2)
}
@@ -1,7 +1,7 @@
// "Replace with 'newFun()'" "true"
class C {
@deprecated("", ReplaceWith("newFun()"))
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun() {
newFun()
}
@@ -1,7 +1,7 @@
// "Replace with 'newFun()'" "true"
class C {
@deprecated("", ReplaceWith("newFun()"))
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun() {
newFun()
}
@@ -1,7 +1,7 @@
// "Replace with 'newFun()'" "true"
class C {
@deprecated("", ReplaceWith("newFun()"))
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun(): Int {
return newFun()
}
@@ -1,7 +1,7 @@
// "Replace with 'newFun()'" "true"
class C {
@deprecated("", ReplaceWith("newFun()"))
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun(): Int {
return newFun()
}
@@ -3,7 +3,7 @@ package ppp
fun bar(): Int = 0
@deprecated("", ReplaceWith("newFun()"))
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun(p: Int = ppp.bar()) {
newFun()
}
@@ -3,7 +3,7 @@ package ppp
fun bar(): Int = 0
@deprecated("", ReplaceWith("newFun()"))
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun(p: Int = ppp.bar()) {
newFun()
}
@@ -1,6 +1,6 @@
// "Replace with 'newFun(p, p)'" "true"
@deprecated("", ReplaceWith("newFun(p, p)"))
@Deprecated("", ReplaceWith("newFun(p, p)"))
fun oldFun(p: Int) {
newFun(p, p)
}
@@ -1,6 +1,6 @@
// "Replace with 'newFun(p, p)'" "true"
@deprecated("", ReplaceWith("newFun(p, p)"))
@Deprecated("", ReplaceWith("newFun(p, p)"))
fun oldFun(p: Int) {
newFun(p, p)
}
@@ -1,7 +1,7 @@
// "Replace with 'newFun(this)'" "true"
class C {
@deprecated("", ReplaceWith("newFun(this)"))
@Deprecated("", ReplaceWith("newFun(this)"))
fun oldFun(){}
}
@@ -1,7 +1,7 @@
// "Replace with 'newFun(this)'" "true"
class C {
@deprecated("", ReplaceWith("newFun(this)"))
@Deprecated("", ReplaceWith("newFun(this)"))
fun oldFun(){}
}
@@ -1,6 +1,6 @@
// "Replace with 'newFun(p, p)'" "true"
@deprecated("", ReplaceWith("newFun(p, p)"))
@Deprecated("", ReplaceWith("newFun(p, p)"))
fun oldFun(p: Int): Int {
return newFun(p, p)
}
@@ -1,6 +1,6 @@
// "Replace with 'newFun(p, p)'" "true"
@deprecated("", ReplaceWith("newFun(p, p)"))
@Deprecated("", ReplaceWith("newFun(p, p)"))
fun oldFun(p: Int): Int {
return newFun(p, p)
}
@@ -1,7 +1,7 @@
// "Replace with 'newFun(this, p)'" "true"
class C {
@deprecated("", ReplaceWith("newFun(this, p)"))
@Deprecated("", ReplaceWith("newFun(this, p)"))
fun oldFun(p: Int){}
}
@@ -1,7 +1,7 @@
// "Replace with 'newFun(this, p)'" "true"
class C {
@deprecated("", ReplaceWith("newFun(this, p)"))
@Deprecated("", ReplaceWith("newFun(this, p)"))
fun oldFun(p: Int){}
}
@@ -2,7 +2,7 @@
import java.util.*
@deprecated("", ReplaceWith("newFun(p, p)"))
@Deprecated("", ReplaceWith("newFun(p, p)"))
fun oldFun(p: List<String>) {
newFun(p, p)
}
@@ -2,7 +2,7 @@
import java.util.*
@deprecated("", ReplaceWith("newFun(p, p)"))
@Deprecated("", ReplaceWith("newFun(p, p)"))
fun oldFun(p: List<String>) {
newFun(p, p)
}
@@ -1,6 +1,6 @@
// "Replace with 'newFun(p, p)'" "true"
@deprecated("", ReplaceWith("newFun(p, p)"))
@Deprecated("", ReplaceWith("newFun(p, p)"))
fun oldFun(p: Int?): Int {
return newFun(p, p)
}
@@ -1,6 +1,6 @@
// "Replace with 'newFun(p, p)'" "true"
@deprecated("", ReplaceWith("newFun(p, p)"))
@Deprecated("", ReplaceWith("newFun(p, p)"))
fun oldFun(p: Int?): Int {
return newFun(p, p)
}
@@ -1,6 +1,6 @@
// "Replace with 'newFun()'" "true"
@deprecated("", ReplaceWith("newFun()"))
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun(p: Int) {
newFun()
}
@@ -1,6 +1,6 @@
// "Replace with 'newFun()'" "true"
@deprecated("", ReplaceWith("newFun()"))
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun(p: Int) {
newFun()
}
@@ -1,6 +1,6 @@
// "Replace with 'newFun(p, p)'" "true"
@deprecated("", ReplaceWith("newFun(p, p)"))
@Deprecated("", ReplaceWith("newFun(p, p)"))
fun oldFun(p: Int) {
newFun(p, p)
}
@@ -1,6 +1,6 @@
// "Replace with 'newFun(p, p)'" "true"
@deprecated("", ReplaceWith("newFun(p, p)"))
@Deprecated("", ReplaceWith("newFun(p, p)"))
fun oldFun(p: Int) {
newFun(p, p)
}
@@ -1,6 +1,6 @@
// "Replace with 'newFun(p, p)'" "true"
@deprecated("", ReplaceWith("newFun(p, p)"))
@Deprecated("", ReplaceWith("newFun(p, p)"))
fun oldFun(p: String) {
newFun(p, p)
}
@@ -1,6 +1,6 @@
// "Replace with 'newFun(p, p)'" "true"
@deprecated("", ReplaceWith("newFun(p, p)"))
@Deprecated("", ReplaceWith("newFun(p, p)"))
fun oldFun(p: String) {
newFun(p, p)
}
@@ -1,6 +1,6 @@
// "Replace with 'newFun(p, p)'" "true"
@deprecated("", ReplaceWith("newFun(p, p)"))
@Deprecated("", ReplaceWith("newFun(p, p)"))
fun oldFun(p: String) {
newFun(p, p)
}
@@ -1,6 +1,6 @@
// "Replace with 'newFun(p, p)'" "true"
@deprecated("", ReplaceWith("newFun(p, p)"))
@Deprecated("", ReplaceWith("newFun(p, p)"))
fun oldFun(p: String) {
newFun(p, p)
}
@@ -1,6 +1,6 @@
// "Replace with 'newFun(p, p)'" "true"
@deprecated("", ReplaceWith("newFun(p, p)"))
@Deprecated("", ReplaceWith("newFun(p, p)"))
fun oldFun(p: String) {
newFun(p, p)
}
@@ -1,6 +1,6 @@
// "Replace with 'newFun(p, p)'" "true"
@deprecated("", ReplaceWith("newFun(p, p)"))
@Deprecated("", ReplaceWith("newFun(p, p)"))
fun oldFun(p: String) {
newFun(p, p)
}