Deprecate deprecated in favor of Deprecated
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// "Replace with 'newFun(p1, p2)'" "true"
|
||||
|
||||
interface I {
|
||||
@deprecated("", ReplaceWith("newFun(p1, p2)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p1, p2)"))
|
||||
fun oldFun(p1: String = "", p2: Int = 0)
|
||||
|
||||
fun newFun(p1: String = "", p2: Int = 0, p3: Int = -1)
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Replace with 'newFun(p1, p2)'" "true"
|
||||
|
||||
interface I {
|
||||
@deprecated("", ReplaceWith("newFun(p1, p2)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p1, p2)"))
|
||||
fun oldFun(p1: String = "", p2: Int = 0)
|
||||
|
||||
fun newFun(p1: String = "", p2: Int = 0, p3: Int = -1)
|
||||
|
||||
Vendored
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Replace with 'newFun(p2, p1, handler)'" "true"
|
||||
|
||||
interface I {
|
||||
@deprecated("", ReplaceWith("newFun(p2, p1, handler)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p2, p1, handler)"))
|
||||
fun oldFun(p1: String = "", p2: Int = 0, handler: () -> Unit)
|
||||
|
||||
fun newFun(a: Int = 0, b: String = "", handler: () -> Unit)
|
||||
|
||||
Vendored
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Replace with 'newFun(p2, p1, handler)'" "true"
|
||||
|
||||
interface I {
|
||||
@deprecated("", ReplaceWith("newFun(p2, p1, handler)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p2, p1, handler)"))
|
||||
fun oldFun(p1: String = "", p2: Int = 0, handler: () -> Unit)
|
||||
|
||||
fun newFun(a: Int = 0, b: String = "", handler: () -> Unit)
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Replace with 'newFun(option1, option2, option3, null)'" "true"
|
||||
|
||||
interface I {
|
||||
@deprecated("", ReplaceWith("newFun(option1, option2, option3, null)"))
|
||||
@Deprecated("", ReplaceWith("newFun(option1, option2, option3, null)"))
|
||||
fun oldFun(option1: String = "", option2: Int = 0, option3: Int = -1)
|
||||
|
||||
fun newFun(option1: String = "", option2: Int = 0, option3: Int = -1, option4: String? = "x")
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Replace with 'newFun(option1, option2, option3, null)'" "true"
|
||||
|
||||
interface I {
|
||||
@deprecated("", ReplaceWith("newFun(option1, option2, option3, null)"))
|
||||
@Deprecated("", ReplaceWith("newFun(option1, option2, option3, null)"))
|
||||
fun oldFun(option1: String = "", option2: Int = 0, option3: Int = -1)
|
||||
|
||||
fun newFun(option1: String = "", option2: Int = 0, option3: Int = -1, option4: String? = "x")
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Replace with 'newFun(p1, p2.toString(), p3, p4, p5)'" "true"
|
||||
|
||||
interface I {
|
||||
@deprecated("", ReplaceWith("newFun(p1, p2.toString(), p3, p4, p5)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p1, p2.toString(), p3, p4, p5)"))
|
||||
fun oldFun(p1: String, p2: Int = 0, p3: String? = null, p4: String = p1, p5: Int = p2)
|
||||
|
||||
fun newFun(p1: String, p2: String, p3: String?, p4: String, p5: Int)
|
||||
|
||||
Vendored
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Replace with 'newFun(p1, p2.toString(), p3, p4, p5)'" "true"
|
||||
|
||||
interface I {
|
||||
@deprecated("", ReplaceWith("newFun(p1, p2.toString(), p3, p4, p5)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p1, p2.toString(), p3, p4, p5)"))
|
||||
fun oldFun(p1: String, p2: Int = 0, p3: String? = null, p4: String = p1, p5: Int = p2)
|
||||
|
||||
fun newFun(p1: String, p2: String, p3: String?, p4: String, p5: Int)
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Replace with 'newFun(p1, p2.toString(), p3)'" "true"
|
||||
|
||||
interface I {
|
||||
@deprecated("", ReplaceWith("newFun(p1, p2.toString(), p3)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p1, p2.toString(), p3)"))
|
||||
fun oldFun(p1: String, p2: Int = 0, p3: String? = null)
|
||||
|
||||
fun newFun(p1: String, p2: String, p3: String? = null)
|
||||
|
||||
Vendored
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Replace with 'newFun(p1, p2.toString(), p3)'" "true"
|
||||
|
||||
interface I {
|
||||
@deprecated("", ReplaceWith("newFun(p1, p2.toString(), p3)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p1, p2.toString(), p3)"))
|
||||
fun oldFun(p1: String, p2: Int = 0, p3: String? = null)
|
||||
|
||||
fun newFun(p1: String, p2: String, p3: String? = null)
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Replace with 'newFun(p1, p2.toString(), p3)'" "true"
|
||||
|
||||
interface I {
|
||||
@deprecated("", ReplaceWith("newFun(p1, p2.toString(), p3)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p1, p2.toString(), p3)"))
|
||||
fun oldFun(p1: String, p2: Int, p3: String?)
|
||||
|
||||
fun newFun(p1: String, p2: String = "", p3: String? = null)
|
||||
|
||||
Vendored
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Replace with 'newFun(p1, p2.toString(), p3)'" "true"
|
||||
|
||||
interface I {
|
||||
@deprecated("", ReplaceWith("newFun(p1, p2.toString(), p3)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p1, p2.toString(), p3)"))
|
||||
fun oldFun(p1: String, p2: Int, p3: String?)
|
||||
|
||||
fun newFun(p1: String, p2: String = "", p3: String? = null)
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Replace with 'newFun(p1, p2, p3)'" "true"
|
||||
|
||||
interface I {
|
||||
@deprecated("", ReplaceWith("newFun(p1, p2, p3)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p1, p2, p3)"))
|
||||
fun oldFun(p1: String, p2: Int = p1.length(), p3: String? = p1)
|
||||
|
||||
fun newFun(x: String, y: Int = x.length(), z: String? = "a")
|
||||
|
||||
Vendored
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Replace with 'newFun(p1, p2, p3)'" "true"
|
||||
|
||||
interface I {
|
||||
@deprecated("", ReplaceWith("newFun(p1, p2, p3)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p1, p2, p3)"))
|
||||
fun oldFun(p1: String, p2: Int = p1.length(), p3: String? = p1)
|
||||
|
||||
fun newFun(x: String, y: Int = x.length(), z: String? = "a")
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Replace with 'newFun(p1, p2)'" "true"
|
||||
|
||||
interface I {
|
||||
@deprecated("", ReplaceWith("newFun(p1, p2)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p1, p2)"))
|
||||
fun oldFun(p1: String, p2: String = p1)
|
||||
|
||||
fun newFun(p1: String, p2: String)
|
||||
|
||||
Vendored
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Replace with 'newFun(p1, p2)'" "true"
|
||||
|
||||
interface I {
|
||||
@deprecated("", ReplaceWith("newFun(p1, p2)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p1, p2)"))
|
||||
fun oldFun(p1: String, p2: String = p1)
|
||||
|
||||
fun newFun(p1: String, p2: String)
|
||||
|
||||
Vendored
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Replace with 'newFun(p1, p2)'" "true"
|
||||
|
||||
interface I {
|
||||
@deprecated("", ReplaceWith("newFun(p1, p2)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p1, p2)"))
|
||||
fun oldFun(p1: String, p2: String = p1)
|
||||
|
||||
fun newFun(p1: String, p2: String = p2)
|
||||
|
||||
Vendored
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Replace with 'newFun(p1, p2)'" "true"
|
||||
|
||||
interface I {
|
||||
@deprecated("", ReplaceWith("newFun(p1, p2)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p1, p2)"))
|
||||
fun oldFun(p1: String, p2: String = p1)
|
||||
|
||||
fun newFun(p1: String, p2: String = p2)
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Replace with 'newFun(p1, p2, p3)'" "true"
|
||||
|
||||
interface I {
|
||||
@deprecated("", ReplaceWith("newFun(p1, p2, p3)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p1, p2, p3)"))
|
||||
fun oldFun(p1: String, p2: String = bar(), p3: String = p2)
|
||||
|
||||
fun newFun(p1: String, p2: String, p3: String)
|
||||
|
||||
Vendored
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Replace with 'newFun(p1, p2, p3)'" "true"
|
||||
|
||||
interface I {
|
||||
@deprecated("", ReplaceWith("newFun(p1, p2, p3)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p1, p2, p3)"))
|
||||
fun oldFun(p1: String, p2: String = bar(), p3: String = p2)
|
||||
|
||||
fun newFun(p1: String, p2: String, p3: String)
|
||||
|
||||
Vendored
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Replace with 'newFun(p1, p2, p3)'" "true"
|
||||
|
||||
interface I {
|
||||
@deprecated("", ReplaceWith("newFun(p1, p2, p3)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p1, p2, p3)"))
|
||||
fun oldFun(p1: String, p2: String = bar(), p3: String = p2)
|
||||
|
||||
fun newFun(p1: String, p2: String, p3: String = p2)
|
||||
|
||||
Vendored
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Replace with 'newFun(p1, p2, p3)'" "true"
|
||||
|
||||
interface I {
|
||||
@deprecated("", ReplaceWith("newFun(p1, p2, p3)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p1, p2, p3)"))
|
||||
fun oldFun(p1: String, p2: String = bar(), p3: String = p2)
|
||||
|
||||
fun newFun(p1: String, p2: String, p3: String = p2)
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Replace with 'newFun(p1, p3, p2)'" "true"
|
||||
|
||||
interface I {
|
||||
@deprecated("", ReplaceWith("newFun(p1, p3, p2)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p1, p3, p2)"))
|
||||
fun oldFun(p1: String, p2: String = "", p3: Int = -1)
|
||||
|
||||
fun newFun(p1: String, p2: Int = -1, p3: String = "")
|
||||
|
||||
Vendored
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Replace with 'newFun(p1, p3, p2)'" "true"
|
||||
|
||||
interface I {
|
||||
@deprecated("", ReplaceWith("newFun(p1, p3, p2)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p1, p3, p2)"))
|
||||
fun oldFun(p1: String, p2: String = "", p3: Int = -1)
|
||||
|
||||
fun newFun(p1: String, p2: Int = -1, p3: String = "")
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Replace with 'newFun(p1, p2, p3)'" "true"
|
||||
|
||||
interface I {
|
||||
@deprecated("", ReplaceWith("newFun(p1, p2, p3)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p1, p2, p3)"))
|
||||
fun oldFun(p1: String, p2: Int = 0, p3: Int = 1)
|
||||
|
||||
fun newFun(p1: String, p2: Int = 1, p3: Int = 1)
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Replace with 'newFun(p1, p2, p3)'" "true"
|
||||
|
||||
interface I {
|
||||
@deprecated("", ReplaceWith("newFun(p1, p2, p3)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p1, p2, p3)"))
|
||||
fun oldFun(p1: String, p2: Int = 0, p3: Int = 1)
|
||||
|
||||
fun newFun(p1: String, p2: Int = 1, p3: Int = 1)
|
||||
|
||||
Reference in New Issue
Block a user