Deprecate deprecated in favor of Deprecated
This commit is contained in:
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun()'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun()"))
|
||||
@Deprecated("", ReplaceWith("newFun()"))
|
||||
fun oldFun(p: Int) {
|
||||
newFun()
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun()'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun()"))
|
||||
@Deprecated("", ReplaceWith("newFun()"))
|
||||
fun oldFun(p: Int) {
|
||||
newFun()
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Replace with 'newFun()'" "true"
|
||||
|
||||
class C {
|
||||
@deprecated("", ReplaceWith("newFun()"))
|
||||
@Deprecated("", ReplaceWith("newFun()"))
|
||||
fun oldFun() {
|
||||
newFun()
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Replace with 'newFun()'" "true"
|
||||
|
||||
class C {
|
||||
@deprecated("", ReplaceWith("newFun()"))
|
||||
@Deprecated("", ReplaceWith("newFun()"))
|
||||
fun oldFun() {
|
||||
newFun()
|
||||
}
|
||||
|
||||
idea/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/complexExpressionNotUsed3Runtime.kt
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun()'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun()"))
|
||||
@Deprecated("", ReplaceWith("newFun()"))
|
||||
fun oldFun(p: Int): Int {
|
||||
return newFun()
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun()'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun()"))
|
||||
@Deprecated("", ReplaceWith("newFun()"))
|
||||
fun oldFun(p: Int): Int {
|
||||
return newFun()
|
||||
}
|
||||
|
||||
idea/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/complexExpressionNotUsed4Runtime.kt
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun()'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun()"))
|
||||
@Deprecated("", ReplaceWith("newFun()"))
|
||||
fun oldFun(p: Int?): Int {
|
||||
return newFun()
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun()'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun()"))
|
||||
@Deprecated("", ReplaceWith("newFun()"))
|
||||
fun oldFun(p: Int?): Int {
|
||||
return newFun()
|
||||
}
|
||||
|
||||
idea/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/complexExpressionNotUsed5Runtime.kt
Vendored
+1
-1
@@ -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
-1
@@ -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)
|
||||
}
|
||||
|
||||
idea/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/complexExpressionNotUsedSafeCall.kt
Vendored
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Replace with 'newFun()'" "true"
|
||||
|
||||
class C {
|
||||
@deprecated("", ReplaceWith("newFun()"))
|
||||
@Deprecated("", ReplaceWith("newFun()"))
|
||||
fun oldFun() {
|
||||
newFun()
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Replace with 'newFun()'" "true"
|
||||
|
||||
class C {
|
||||
@deprecated("", ReplaceWith("newFun()"))
|
||||
@Deprecated("", ReplaceWith("newFun()"))
|
||||
fun oldFun() {
|
||||
newFun()
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Replace with 'newFun()'" "true"
|
||||
|
||||
class C {
|
||||
@deprecated("", ReplaceWith("newFun()"))
|
||||
@Deprecated("", ReplaceWith("newFun()"))
|
||||
fun oldFun(): Int {
|
||||
return newFun()
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Replace with 'newFun()'" "true"
|
||||
|
||||
class C {
|
||||
@deprecated("", ReplaceWith("newFun()"))
|
||||
@Deprecated("", ReplaceWith("newFun()"))
|
||||
fun oldFun(): Int {
|
||||
return newFun()
|
||||
}
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ package ppp
|
||||
|
||||
fun bar(): Int = 0
|
||||
|
||||
@deprecated("", ReplaceWith("newFun()"))
|
||||
@Deprecated("", ReplaceWith("newFun()"))
|
||||
fun oldFun(p: Int = ppp.bar()) {
|
||||
newFun()
|
||||
}
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ package ppp
|
||||
|
||||
fun bar(): Int = 0
|
||||
|
||||
@deprecated("", ReplaceWith("newFun()"))
|
||||
@Deprecated("", ReplaceWith("newFun()"))
|
||||
fun oldFun(p: Int = ppp.bar()) {
|
||||
newFun()
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
idea/testData/quickfix/deprecatedSymbolUsage/argumentSideEffects/complexExpressionUsedTwice.kt.after
Vendored
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Replace with 'newFun(this)'" "true"
|
||||
|
||||
class C {
|
||||
@deprecated("", ReplaceWith("newFun(this)"))
|
||||
@Deprecated("", ReplaceWith("newFun(this)"))
|
||||
fun oldFun(){}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Replace with 'newFun(this)'" "true"
|
||||
|
||||
class C {
|
||||
@deprecated("", ReplaceWith("newFun(this)"))
|
||||
@Deprecated("", ReplaceWith("newFun(this)"))
|
||||
fun oldFun(){}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -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
-1
@@ -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)
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -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
-1
@@ -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
-1
@@ -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
-1
@@ -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
-1
@@ -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
-1
@@ -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)
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun()'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun()"))
|
||||
@Deprecated("", ReplaceWith("newFun()"))
|
||||
fun oldFun(p: Int) {
|
||||
newFun()
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Replace with 'newFun()'" "true"
|
||||
|
||||
@deprecated("", ReplaceWith("newFun()"))
|
||||
@Deprecated("", ReplaceWith("newFun()"))
|
||||
fun oldFun(p: Int) {
|
||||
newFun()
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -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
-1
@@ -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)
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user