DeprecatedSymbolUsageInWholeProjectFix removes imports too

This commit is contained in:
Valentin Kipyatkov
2015-08-28 22:10:03 +03:00
parent e98edbcbac
commit 937f243046
7 changed files with 26 additions and 4 deletions
@@ -1,5 +1,4 @@
import newPack.newFun
import pack.oldFun
fun x() {
newFun(1 + 1)
@@ -1,7 +1,6 @@
// "Replace usages of 'oldFun(Int): Unit' in whole project" "true"
import newPack.newFun
import pack.oldFun
fun foo() {
<caret>newFun(0 + 1)
@@ -3,6 +3,8 @@ package pack
@deprecated("", ReplaceWith("newProp"))
val oldProp: String = ""
val String.oldProp: String get() = ""
val newProp: String = ""
fun foo(s: String){}
@@ -1,6 +1,8 @@
// "Replace usages of 'oldProp: String' in whole project" "true"
import pack.*
import pack.oldProp
import pack.foo
import pack.newProp
fun foo() {
foo(<caret>newProp)
@@ -3,6 +3,8 @@ package pack
@deprecated("", ReplaceWith("newProp"))
val oldProp: String = ""
val String.oldProp: String get() = ""
val newProp: String = ""
fun foo(s: String){}
@@ -1,6 +1,7 @@
// "Replace usages of 'oldProp: String' in whole project" "true"
import pack.*
import pack.oldProp
import pack.foo
fun foo() {
foo(<caret>oldProp)