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 @@
// "Replace with 's.newFun(this)'" "true"
class X {
@deprecated("", ReplaceWith("s.newFun(this)"))
@Deprecated("", ReplaceWith("s.newFun(this)"))
fun oldFun(s: String): String = s.newFun(this)
}
@@ -1,7 +1,7 @@
// "Replace with 's.newFun(this)'" "true"
class X {
@deprecated("", ReplaceWith("s.newFun(this)"))
@Deprecated("", ReplaceWith("s.newFun(this)"))
fun oldFun(s: String): String = s.newFun(this)
}
@@ -1,7 +1,7 @@
// "Replace with 'c.newFun(this)'" "true"
class X {
@deprecated("", ReplaceWith("c.newFun(this)"))
@Deprecated("", ReplaceWith("c.newFun(this)"))
fun oldFun(c: Char): Char = c.newFun(this)
}
@@ -1,7 +1,7 @@
// "Replace with 'c.newFun(this)'" "true"
class X {
@deprecated("", ReplaceWith("c.newFun(this)"))
@Deprecated("", ReplaceWith("c.newFun(this)"))
fun oldFun(c: Char): Char = c.newFun(this)
}
@@ -1,7 +1,7 @@
// "Replace with 's.filter { it != c }'" "true"
class X {
@deprecated("", ReplaceWith("s.filter { it != c }"))
@Deprecated("", ReplaceWith("s.filter { it != c }"))
fun oldFun(s: String): CharSequence = s.filter { it != c }
val c = 'x'
@@ -1,7 +1,7 @@
// "Replace with 's.filter { it != c }'" "true"
class X {
@deprecated("", ReplaceWith("s.filter { it != c }"))
@Deprecated("", ReplaceWith("s.filter { it != c }"))
fun oldFun(s: String): CharSequence = s.filter { it != c }
val c = 'x'
@@ -1,7 +1,7 @@
// "Replace with 'c1.newFun(this, c2)'" "true"
class X {
@deprecated("", ReplaceWith("c1.newFun(this, c2)"))
@Deprecated("", ReplaceWith("c1.newFun(this, c2)"))
fun oldFun(c1: Char, c2: Char): Char = c1.newFun(this, c2)
val c: Char = 'a'
@@ -1,7 +1,7 @@
// "Replace with 'c1.newFun(this, c2)'" "true"
class X {
@deprecated("", ReplaceWith("c1.newFun(this, c2)"))
@Deprecated("", ReplaceWith("c1.newFun(this, c2)"))
fun oldFun(c1: Char, c2: Char): Char = c1.newFun(this, c2)
val c: Char = 'a'
@@ -1,7 +1,7 @@
// "Replace with 'c1.newFun(this, c2)'" "true"
class X(val c: Char) {
@deprecated("", ReplaceWith("c1.newFun(this, c2)"))
@Deprecated("", ReplaceWith("c1.newFun(this, c2)"))
fun oldFun(c1: Char, c2: Char): Char = c1.newFun(this, c2)
}
@@ -1,7 +1,7 @@
// "Replace with 'c1.newFun(this, c2)'" "true"
class X(val c: Char) {
@deprecated("", ReplaceWith("c1.newFun(this, c2)"))
@Deprecated("", ReplaceWith("c1.newFun(this, c2)"))
fun oldFun(c1: Char, c2: Char): Char = c1.newFun(this, c2)
}
@@ -1,7 +1,7 @@
// "Replace with 's.newFun(this)'" "true"
class X {
@deprecated("", ReplaceWith("s.newFun(this)"))
@Deprecated("", ReplaceWith("s.newFun(this)"))
fun oldFun(s: String): String = s.newFun(this)
}
@@ -1,7 +1,7 @@
// "Replace with 's.newFun(this)'" "true"
class X {
@deprecated("", ReplaceWith("s.newFun(this)"))
@Deprecated("", ReplaceWith("s.newFun(this)"))
fun oldFun(s: String): String = s.newFun(this)
}
@@ -1,7 +1,7 @@
// "Replace with 'newFun()'" "true"
class X {
@deprecated("", ReplaceWith("newFun()"))
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun(){}
}
@@ -1,7 +1,7 @@
// "Replace with 'newFun()'" "true"
class X {
@deprecated("", ReplaceWith("newFun()"))
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun(){}
}
@@ -1,7 +1,7 @@
// "Replace with 'newFun()'" "true"
class X {
@deprecated("", ReplaceWith("newFun()"))
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun(){}
fun newFun(){}
@@ -1,7 +1,7 @@
// "Replace with 'newFun()'" "true"
class X {
@deprecated("", ReplaceWith("newFun()"))
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun(){}
fun newFun(){}