Deprecate deprecated in favor of Deprecated
This commit is contained in:
+1
-1
@@ -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
-1
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -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'
|
||||
|
||||
Vendored
+1
-1
@@ -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'
|
||||
|
||||
Vendored
+1
-1
@@ -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'
|
||||
|
||||
Vendored
+1
-1
@@ -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'
|
||||
|
||||
Vendored
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -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
-1
@@ -1,7 +1,7 @@
|
||||
// "Replace with 'newFun()'" "true"
|
||||
|
||||
class X {
|
||||
@deprecated("", ReplaceWith("newFun()"))
|
||||
@Deprecated("", ReplaceWith("newFun()"))
|
||||
fun oldFun(){}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -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(){}
|
||||
|
||||
Reference in New Issue
Block a user