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 'newFun1(newFun2())'" "true"
class X {
@deprecated("", ReplaceWith("newFun1(newFun2())"))
@Deprecated("", ReplaceWith("newFun1(newFun2())"))
fun oldFun() {
newFun1(newFun2())
}
@@ -1,7 +1,7 @@
// "Replace with 'newFun1(newFun2())'" "true"
class X {
@deprecated("", ReplaceWith("newFun1(newFun2())"))
@Deprecated("", ReplaceWith("newFun1(newFun2())"))
fun oldFun() {
newFun1(newFun2())
}
@@ -1,6 +1,6 @@
// "Replace with 'newFun()'" "true"
@deprecated("", ReplaceWith("newFun()"))
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun(p: Int) {
newFun()
}
@@ -1,6 +1,6 @@
// "Replace with 'newFun()'" "true"
@deprecated("", ReplaceWith("newFun()"))
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun(p: Int) {
newFun()
}
@@ -1,7 +1,7 @@
// "Replace with 'newFun()'" "true"
class C {
@deprecated("", ReplaceWith("newFun()"))
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun() {
newFun()
}
@@ -1,7 +1,7 @@
// "Replace with 'newFun()'" "true"
class C {
@deprecated("", ReplaceWith("newFun()"))
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun() {
newFun()
}
@@ -1,6 +1,6 @@
// "Replace with 'newFun()'" "true"
@deprecated("", ReplaceWith("newFun()"))
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun(p: Int): Int {
return newFun()
}
@@ -1,6 +1,6 @@
// "Replace with 'newFun()'" "true"
@deprecated("", ReplaceWith("newFun()"))
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun(p: Int): Int {
return newFun()
}
@@ -1,6 +1,6 @@
// "Replace with 'newFun()'" "true"
@deprecated("", ReplaceWith("newFun()"))
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun(p: Int?): Int {
return newFun()
}
@@ -1,6 +1,6 @@
// "Replace with 'newFun()'" "true"
@deprecated("", ReplaceWith("newFun()"))
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun(p: Int?): Int {
return newFun()
}
@@ -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,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,7 +1,7 @@
// "Replace with 'newFun()'" "true"
class C {
@deprecated("", ReplaceWith("newFun()"))
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun() {
newFun()
}
@@ -1,7 +1,7 @@
// "Replace with 'newFun()'" "true"
class C {
@deprecated("", ReplaceWith("newFun()"))
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun() {
newFun()
}
@@ -1,7 +1,7 @@
// "Replace with 'newFun()'" "true"
class C {
@deprecated("", ReplaceWith("newFun()"))
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun(): Int {
return newFun()
}
@@ -1,7 +1,7 @@
// "Replace with 'newFun()'" "true"
class C {
@deprecated("", ReplaceWith("newFun()"))
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun(): Int {
return newFun()
}
@@ -3,7 +3,7 @@ package ppp
fun bar(): Int = 0
@deprecated("", ReplaceWith("newFun()"))
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun(p: Int = ppp.bar()) {
newFun()
}
@@ -3,7 +3,7 @@ package ppp
fun bar(): Int = 0
@deprecated("", ReplaceWith("newFun()"))
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun(p: Int = ppp.bar()) {
newFun()
}
@@ -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,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,7 +1,7 @@
// "Replace with 'newFun(this)'" "true"
class C {
@deprecated("", ReplaceWith("newFun(this)"))
@Deprecated("", ReplaceWith("newFun(this)"))
fun oldFun(){}
}
@@ -1,7 +1,7 @@
// "Replace with 'newFun(this)'" "true"
class C {
@deprecated("", ReplaceWith("newFun(this)"))
@Deprecated("", ReplaceWith("newFun(this)"))
fun oldFun(){}
}
@@ -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,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,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,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){}
}
@@ -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)
}
@@ -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,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,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,6 +1,6 @@
// "Replace with 'newFun()'" "true"
@deprecated("", ReplaceWith("newFun()"))
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun(p: Int) {
newFun()
}
@@ -1,6 +1,6 @@
// "Replace with 'newFun()'" "true"
@deprecated("", ReplaceWith("newFun()"))
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun(p: Int) {
newFun()
}
@@ -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,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,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)
}
@@ -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)
}
@@ -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)
}
@@ -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)
}
@@ -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)
}
@@ -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)
}
@@ -1,6 +1,6 @@
// "Replace with 'newFun()'" "true"
@deprecated("", ReplaceWith("newFun()"))
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun(): String = ""
fun newFun(): String = ""
@@ -1,6 +1,6 @@
// "Replace with 'newFun()'" "true"
@deprecated("", ReplaceWith("newFun()"))
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun(): String = ""
fun newFun(): String = ""
@@ -1,7 +1,7 @@
// "class org.jetbrains.kotlin.idea.quickfix.replaceWith.DeprecatedSymbolUsageFix" "false"
// ERROR: Too many arguments for kotlin.deprecated internal fun oldFun(): kotlin.Unit defined in root package
// ERROR: Too many arguments for kotlin.Deprecated internal fun oldFun(): kotlin.Unit defined in root package
@deprecated("", ReplaceWith("newFun()"))
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun() {
}
@@ -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){}
}
@@ -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){}
}
@@ -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){}
}
@@ -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){}
}
@@ -1,7 +1,7 @@
// "Replace with 's.newFun(this)'" "true"
open class Base {
@deprecated("", ReplaceWith("s.newFun(this)"))
@Deprecated("", ReplaceWith("s.newFun(this)"))
fun oldFun(s: String){}
open inner class Inner
@@ -1,7 +1,7 @@
// "Replace with 's.newFun(this)'" "true"
open class Base {
@deprecated("", ReplaceWith("s.newFun(this)"))
@Deprecated("", ReplaceWith("s.newFun(this)"))
fun oldFun(s: String){}
open inner class Inner
@@ -1,6 +1,6 @@
package dependency
@deprecated("", ReplaceWith("NewClass"))
@Deprecated("", ReplaceWith("NewClass"))
class OldClass
class NewClass
@@ -2,7 +2,7 @@
package test
@deprecated("Replace with bar", ReplaceWith("test.Bar"))
@Deprecated("Replace with bar", ReplaceWith("test.Bar"))
annotation class Foo
annotation class Bar
@@ -2,7 +2,7 @@
package test
@deprecated("Replace with bar", ReplaceWith("test.Bar"))
@Deprecated("Replace with bar", ReplaceWith("test.Bar"))
annotation class Foo
annotation class Bar
@@ -2,7 +2,7 @@
package test
@deprecated("Replace with bar", ReplaceWith("test.Bar"))
@Deprecated("Replace with bar", ReplaceWith("test.Bar"))
annotation class Foo(val p1: String, val p2: Int)
annotation class Bar(val p1: String, val p2: Int)
@@ -2,7 +2,7 @@
package test
@deprecated("Replace with bar", ReplaceWith("test.Bar"))
@Deprecated("Replace with bar", ReplaceWith("test.Bar"))
annotation class Foo(val p1: String, val p2: Int)
annotation class Bar(val p1: String, val p2: Int)
@@ -1,6 +1,6 @@
// "Replace with 'NewClass'" "true"
@deprecated("", ReplaceWith("NewClass"))
@Deprecated("", ReplaceWith("NewClass"))
class OldClass(p: Int)
class NewClass(p: Int)
@@ -1,6 +1,6 @@
// "Replace with 'NewClass'" "true"
@deprecated("", ReplaceWith("NewClass"))
@Deprecated("", ReplaceWith("NewClass"))
class OldClass(p: Int)
class NewClass(p: Int)
@@ -1,6 +1,6 @@
// "Replace with 'java.util.Random'" "true"
@deprecated("", ReplaceWith("java.util.Random"))
@Deprecated("", ReplaceWith("java.util.Random"))
class OldClass
fun foo() {
@@ -2,7 +2,7 @@ import java.util.Random
// "Replace with 'java.util.Random'" "true"
@deprecated("", ReplaceWith("java.util.Random"))
@Deprecated("", ReplaceWith("java.util.Random"))
class OldClass
fun foo() {
@@ -1,7 +1,7 @@
// "Replace with 'NewClass'" "true"
package ppp
@deprecated("", ReplaceWith("NewClass"))
@Deprecated("", ReplaceWith("NewClass"))
class OldClass(p: Int)
class NewClass(p: Int)
@@ -1,7 +1,7 @@
// "Replace with 'NewClass'" "true"
package ppp
@deprecated("", ReplaceWith("NewClass"))
@Deprecated("", ReplaceWith("NewClass"))
class OldClass(p: Int)
class NewClass(p: Int)
@@ -1,6 +1,6 @@
// "Replace with 'File'" "true"
@deprecated("", ReplaceWith("File", "java.io.File"))
@Deprecated("", ReplaceWith("File", "java.io.File"))
class OldClass
fun foo(): OldClass<caret>? {
@@ -2,7 +2,7 @@ import java.io.File
// "Replace with 'File'" "true"
@deprecated("", ReplaceWith("File", "java.io.File"))
@Deprecated("", ReplaceWith("File", "java.io.File"))
class OldClass
fun foo(): File? {
@@ -1,6 +1,6 @@
// "Replace with 'NewClass'" "true"
@deprecated("", ReplaceWith("NewClass"))
@Deprecated("", ReplaceWith("NewClass"))
class OldClass
class NewClass
@@ -1,6 +1,6 @@
// "Replace with 'NewClass'" "true"
@deprecated("", ReplaceWith("NewClass"))
@Deprecated("", ReplaceWith("NewClass"))
class OldClass
class NewClass
@@ -1,7 +1,7 @@
// "Replace with 'NewClass'" "true"
class Outer {
@deprecated("", ReplaceWith("NewClass"))
@Deprecated("", ReplaceWith("NewClass"))
class OldClass
class NewClass
@@ -1,7 +1,7 @@
// "Replace with 'NewClass'" "true"
class Outer {
@deprecated("", ReplaceWith("NewClass"))
@Deprecated("", ReplaceWith("NewClass"))
class OldClass
class NewClass
@@ -1,6 +1,6 @@
// "class org.jetbrains.kotlin.idea.quickfix.replaceWith.DeprecatedSymbolUsageFix" "false"
@deprecated("")
@Deprecated("")
class C(p: Int)
fun foo() {
@@ -2,7 +2,7 @@
package ppp
@deprecated("", ReplaceWith("NewClass"))
@Deprecated("", ReplaceWith("NewClass"))
class OldClass
class NewClass
@@ -2,7 +2,7 @@
package ppp
@deprecated("", ReplaceWith("NewClass"))
@Deprecated("", ReplaceWith("NewClass"))
class OldClass
class NewClass
@@ -1,6 +1,6 @@
// "Replace with 'java.io.File'" "true"
@deprecated("", ReplaceWith("java.io.File"))
@Deprecated("", ReplaceWith("java.io.File"))
class OldClass
fun foo(): OldClass<caret>? {
@@ -2,7 +2,7 @@ import java.io.File
// "Replace with 'java.io.File'" "true"
@deprecated("", ReplaceWith("java.io.File"))
@Deprecated("", ReplaceWith("java.io.File"))
class OldClass
fun foo(): File? {
@@ -1,6 +1,6 @@
// "Replace with 'NewClass'" "true"
@deprecated("", ReplaceWith("NewClass"))
@Deprecated("", ReplaceWith("NewClass"))
class OldClass
class NewClass
@@ -1,6 +1,6 @@
// "Replace with 'NewClass'" "true"
@deprecated("", ReplaceWith("NewClass"))
@Deprecated("", ReplaceWith("NewClass"))
class OldClass
class NewClass
@@ -1,6 +1,6 @@
package dependency
@deprecated("", ReplaceWith("dependency.NewAnnotation"))
@Deprecated("", ReplaceWith("dependency.NewAnnotation"))
annotation class OldAnnotation(val p: Int = 0)
annotation class NewAnnotation(val p: Int = 0, val newP: String = "")
@@ -1,6 +1,6 @@
package dependency
@deprecated("", ReplaceWith("dependency.NewAnnotation"))
@Deprecated("", ReplaceWith("dependency.NewAnnotation"))
annotation class OldAnnotation(val p: Int = 0)
annotation class NewAnnotation(val p: Int = 0, val newP: String = "")
@@ -2,7 +2,7 @@
package ppp
@deprecated("", ReplaceWith("NewClass"))
@Deprecated("", ReplaceWith("NewClass"))
open class OldClass(val p: Int) {
constructor() : this(0)
}
@@ -2,7 +2,7 @@
package ppp
@deprecated("", ReplaceWith("NewClass"))
@Deprecated("", ReplaceWith("NewClass"))
open class OldClass(val p: Int) {
constructor() : this(0)
}
@@ -1,6 +1,6 @@
// "Replace with 'newFun(c)'" "true"
@deprecated("", ReplaceWith("newFun(c)"))
@Deprecated("", ReplaceWith("newFun(c)"))
fun oldFun(c: Char){}
fun newFun(c: Char){}
@@ -1,6 +1,6 @@
// "Replace with 'newFun(c)'" "true"
@deprecated("", ReplaceWith("newFun(c)"))
@Deprecated("", ReplaceWith("newFun(c)"))
fun oldFun(c: Char){}
fun newFun(c: Char){}
@@ -1,7 +1,7 @@
// "Replace with 'newFun(p)'" "true"
class X {
@deprecated("", ReplaceWith("newFun(p)"))
@Deprecated("", ReplaceWith("newFun(p)"))
fun oldFun(p: Any) {
newFun(p)
}
@@ -1,7 +1,7 @@
// "Replace with 'newFun(p)'" "true"
class X {
@deprecated("", ReplaceWith("newFun(p)"))
@Deprecated("", ReplaceWith("newFun(p)"))
fun oldFun(p: Any) {
newFun(p)
}
@@ -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(){}
}
@@ -2,7 +2,7 @@
class C<T>
@deprecated("", ReplaceWith("newFun(t)"))
@Deprecated("", ReplaceWith("newFun(t)"))
fun <T> C<T>.oldFun(t: T){}
fun <T> C<T>.newFun(t: T){}
@@ -2,7 +2,7 @@
class C<T>
@deprecated("", ReplaceWith("newFun(t)"))
@Deprecated("", ReplaceWith("newFun(t)"))
fun <T> C<T>.oldFun(t: T){}
fun <T> C<T>.newFun(t: T){}
@@ -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: () -> Boolean)
fun newFun(p1: String, p2: () -> Boolean, p3: String? = null)
@@ -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: () -> Boolean)
fun newFun(p1: String, p2: () -> Boolean, p3: String? = null)
@@ -1,7 +1,7 @@
// "Replace with 'newFun(p1, null, p2)'" "true"
interface I {
@deprecated("", ReplaceWith("newFun(p1, null, p2)"))
@Deprecated("", ReplaceWith("newFun(p1, null, p2)"))
fun oldFun(p1: String, p2: () -> Boolean)
fun newFun(p1: String, p2: String?, p3: () -> Boolean)
@@ -1,7 +1,7 @@
// "Replace with 'newFun(p1, null, p2)'" "true"
interface I {
@deprecated("", ReplaceWith("newFun(p1, null, p2)"))
@Deprecated("", ReplaceWith("newFun(p1, null, p2)"))
fun oldFun(p1: String, p2: () -> Boolean)
fun newFun(p1: String, p2: String?, p3: () -> Boolean)
@@ -1,7 +1,7 @@
// "Replace with 'newFun(p1, null, p2)'" "true"
interface I {
@deprecated("", ReplaceWith("newFun(p1, null, p2)"))
@Deprecated("", ReplaceWith("newFun(p1, null, p2)"))
fun oldFun(p1: String, p2: () -> Boolean)
fun newFun(p1: String, p2: String?, p3: () -> Boolean)
@@ -1,7 +1,7 @@
// "Replace with 'newFun(p1, null, p2)'" "true"
interface I {
@deprecated("", ReplaceWith("newFun(p1, null, p2)"))
@Deprecated("", ReplaceWith("newFun(p1, null, p2)"))
fun oldFun(p1: String, p2: () -> Boolean)
fun newFun(p1: String, p2: String?, p3: () -> Boolean)
@@ -1,7 +1,7 @@
// "Replace with 'newFun(this)'" "true"
open class C {
@deprecated("", ReplaceWith("newFun(this)"))
@Deprecated("", ReplaceWith("newFun(this)"))
fun oldFun(){}
}
@@ -1,7 +1,7 @@
// "Replace with 'newFun(this)'" "true"
open class C {
@deprecated("", ReplaceWith("newFun(this)"))
@Deprecated("", ReplaceWith("newFun(this)"))
fun oldFun(){}
}
@@ -1,7 +1,7 @@
// "Replace with 'newFun(this, s)'" "true"
interface I {
@deprecated("", ReplaceWith("newFun(this, s)"))
@Deprecated("", ReplaceWith("newFun(this, s)"))
fun oldFun(s: String)
}
@@ -1,7 +1,7 @@
// "Replace with 'newFun(this, s)'" "true"
interface I {
@deprecated("", ReplaceWith("newFun(this, s)"))
@Deprecated("", ReplaceWith("newFun(this, s)"))
fun oldFun(s: String)
}
@@ -1,6 +1,6 @@
package dependency
@deprecated("", ReplaceWith("s.newFun()"))
@Deprecated("", ReplaceWith("s.newFun()"))
fun oldFun(s: String) {}
fun String.newFun() {}
@@ -1,6 +1,6 @@
package dependency
@deprecated("", ReplaceWith("s.extension().newFun()", "dependency2.extension"))
@Deprecated("", ReplaceWith("s.extension().newFun()", "dependency2.extension"))
fun oldFun(s: String) {}
fun String.newFun() {}
@@ -1,6 +1,6 @@
package dependency
@deprecated("", ReplaceWith("newFun()"))
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun() {}
fun newFun() {}
@@ -2,7 +2,7 @@
import java.math.BigInteger
@deprecated("", ReplaceWith("newFun(n + java.math.BigInteger(s))", "kotlin.math.plus"))
@Deprecated("", ReplaceWith("newFun(n + java.math.BigInteger(s))", "kotlin.math.plus"))
fun oldFun(n: BigInteger, s: String) {}
fun newFun(n: BigInteger) {}
@@ -3,7 +3,7 @@
import java.math.BigInteger
import kotlin.math.plus
@deprecated("", ReplaceWith("newFun(n + java.math.BigInteger(s))", "kotlin.math.plus"))
@Deprecated("", ReplaceWith("newFun(n + java.math.BigInteger(s))", "kotlin.math.plus"))
fun oldFun(n: BigInteger, s: String) {}
fun newFun(n: BigInteger) {}

Some files were not shown because too many files have changed in this diff Show More