Deprecate deprecated in favor of Deprecated
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(*p, x = null)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(*p, x = null)"))
|
||||
@Deprecated("", ReplaceWith("newFun(*p, x = null)"))
|
||||
fun oldFun(vararg p: Int){
|
||||
newFun(*p, x = null)
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(*p, x = null)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(*p, x = null)"))
|
||||
@Deprecated("", ReplaceWith("newFun(*p, x = null)"))
|
||||
fun oldFun(vararg p: Int){
|
||||
newFun(*p, x = null)
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(*p, 1)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(*p, 1)"))
|
||||
@Deprecated("", ReplaceWith("newFun(*p, 1)"))
|
||||
fun oldFun(vararg p: Int){
|
||||
newFun(*p, 1)
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(*p, 1)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(*p, 1)"))
|
||||
@Deprecated("", ReplaceWith("newFun(*p, 1)"))
|
||||
fun oldFun(vararg p: Int){
|
||||
newFun(*p, 1)
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(*p, *list.toIntArray())'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(*p, *list.toIntArray())"))
|
||||
@Deprecated("", ReplaceWith("newFun(*p, *list.toIntArray())"))
|
||||
fun oldFun(list: List<Int>, vararg p: Int){
|
||||
newFun(*p, *list.toIntArray())
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(*p, *list.toIntArray())'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(*p, *list.toIntArray())"))
|
||||
@Deprecated("", ReplaceWith("newFun(*p, *list.toIntArray())"))
|
||||
fun oldFun(list: List<Int>, vararg p: Int){
|
||||
newFun(*p, *list.toIntArray())
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(p)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(p)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p)"))
|
||||
fun oldFun(vararg p: Boolean){
|
||||
newFun(p)
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(p)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(p)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p)"))
|
||||
fun oldFun(vararg p: Boolean){
|
||||
newFun(p)
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(p)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(p)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p)"))
|
||||
fun oldFun(vararg p: Byte){
|
||||
newFun(p)
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(p)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(p)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p)"))
|
||||
fun oldFun(vararg p: Byte){
|
||||
newFun(p)
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(*c)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(*c)"))
|
||||
@Deprecated("", ReplaceWith("newFun(*c)"))
|
||||
fun oldFun(vararg c: Char){}
|
||||
|
||||
fun newFun(vararg c: Char){}
|
||||
|
||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(*c)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(*c)"))
|
||||
@Deprecated("", ReplaceWith("newFun(*c)"))
|
||||
fun oldFun(vararg c: Char){}
|
||||
|
||||
fun newFun(vararg c: Char){}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(*c)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(*c)"))
|
||||
@Deprecated("", ReplaceWith("newFun(*c)"))
|
||||
fun oldFun(vararg c: Char){}
|
||||
|
||||
fun newFun(vararg c: Char){}
|
||||
|
||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(*c)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(*c)"))
|
||||
@Deprecated("", ReplaceWith("newFun(*c)"))
|
||||
fun oldFun(vararg c: Char){}
|
||||
|
||||
fun newFun(vararg c: Char){}
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
|
||||
fun foo(vararg s: String) = s.joinToString()
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(p)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p)"))
|
||||
fun oldFun(p: String){
|
||||
newFun(p)
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -2,7 +2,7 @@
|
||||
|
||||
fun foo(vararg s: String) = s.joinToString()
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(p)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p)"))
|
||||
fun oldFun(p: String){
|
||||
newFun(p)
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(p)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(p)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p)"))
|
||||
fun oldFun(vararg p: Double){
|
||||
newFun(p)
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(p)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(p)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p)"))
|
||||
fun oldFun(vararg p: Double){
|
||||
newFun(p)
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(p)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(p)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p)"))
|
||||
fun oldFun(vararg p: Float){
|
||||
newFun(p)
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(p)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(p)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p)"))
|
||||
fun oldFun(vararg p: Float){
|
||||
newFun(p)
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(p)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(p)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p)"))
|
||||
fun oldFun(vararg p: Long){
|
||||
newFun(p)
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(p)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(p)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p)"))
|
||||
fun oldFun(vararg p: Long){
|
||||
newFun(p)
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(p)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(p)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p)"))
|
||||
fun oldFun(vararg p: Int){
|
||||
newFun(p)
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(p)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(p)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p)"))
|
||||
fun oldFun(vararg p: Int){
|
||||
newFun(p)
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(*p, 1)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(*p, 1)"))
|
||||
@Deprecated("", ReplaceWith("newFun(*p, 1)"))
|
||||
fun oldFun(vararg p: Int){
|
||||
newFun(*p, 1)
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(*p, 1)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(*p, 1)"))
|
||||
@Deprecated("", ReplaceWith("newFun(*p, 1)"))
|
||||
fun oldFun(vararg p: Int){
|
||||
newFun(*p, 1)
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(*elements)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(*elements)"))
|
||||
@Deprecated("", ReplaceWith("newFun(*elements)"))
|
||||
fun oldFun(vararg elements: java.io.File?) {
|
||||
newFun(*elements)
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(*elements)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(*elements)"))
|
||||
@Deprecated("", ReplaceWith("newFun(*elements)"))
|
||||
fun oldFun(vararg elements: java.io.File?) {
|
||||
newFun(*elements)
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(p)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(p)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p)"))
|
||||
fun oldFun(vararg p: Short){
|
||||
newFun(p)
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(p)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(p)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p)"))
|
||||
fun oldFun(vararg p: Short){
|
||||
newFun(p)
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(p1, *p2)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(p1, *p2)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p1, *p2)"))
|
||||
fun oldFun(p1: String, vararg p2: Int){
|
||||
newFun(p1, *p2)
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(p1, *p2)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(p1, *p2)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p1, *p2)"))
|
||||
fun oldFun(p1: String, vararg p2: Int){
|
||||
newFun(p1, *p2)
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(p1, *p2)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(p1, *p2)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p1, *p2)"))
|
||||
fun oldFun(p1: String, vararg p2: Int){
|
||||
newFun(p1, *p2)
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(p1, *p2)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(p1, *p2)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p1, *p2)"))
|
||||
fun oldFun(p1: String, vararg p2: Int){
|
||||
newFun(p1, *p2)
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(p1, *p2)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(p1, *p2)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p1, *p2)"))
|
||||
fun oldFun(p1: String, vararg p2: Int){
|
||||
newFun(p1, *p2)
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(p1, *p2)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(p1, *p2)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p1, *p2)"))
|
||||
fun oldFun(p1: String, vararg p2: Int){
|
||||
newFun(p1, *p2)
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(p1, *p2)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(p1, *p2)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p1, *p2)"))
|
||||
fun oldFun(p1: String, vararg p2: Int){
|
||||
newFun(p1, *p2)
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(p1, *p2)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(p1, *p2)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p1, *p2)"))
|
||||
fun oldFun(p1: String, vararg p2: Int){
|
||||
newFun(p1, *p2)
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(p1, p2)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(p1, p2)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p1, p2)"))
|
||||
fun oldFun(p1: String, vararg p2: Int) {
|
||||
newFun(p1, p2)
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(p1, p2)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(p1, p2)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p1, p2)"))
|
||||
fun oldFun(p1: String, vararg p2: Int) {
|
||||
newFun(p1, p2)
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(p1, p2)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(p1, p2)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p1, p2)"))
|
||||
fun oldFun(p1: String, vararg p2: Int) {
|
||||
newFun(p1, p2)
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(p1, p2)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(p1, p2)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p1, p2)"))
|
||||
fun oldFun(p1: String, vararg p2: Int) {
|
||||
newFun(p1, p2)
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(p1, *p2)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(p1, *p2)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p1, *p2)"))
|
||||
fun oldFun(p1: String, p2: IntArray) {
|
||||
newFun(p1, *p2)
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(p1, *p2)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(p1, *p2)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p1, *p2)"))
|
||||
fun oldFun(p1: String, p2: IntArray) {
|
||||
newFun(p1, *p2)
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(p1, *p2)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(p1, *p2)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p1, *p2)"))
|
||||
fun oldFun(p1: String, p2: IntArray) {
|
||||
newFun(p1, *p2)
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun(p1, *p2)'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun(p1, *p2)"))
|
||||
@Deprecated("", ReplaceWith("newFun(p1, *p2)"))
|
||||
fun oldFun(p1: String, p2: IntArray) {
|
||||
newFun(p1, *p2)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user