Changed RemovePartsFromPropertyFix so it uses SpecifyTypeExplicitlyAction.addTypeAnnotation() instead of AddReturnTypeFix.addPropertyType().

This commit is contained in:
Evgeny Gerashchenko
2012-05-03 16:04:57 +04:00
parent c80ac15b8a
commit 22010a5ae0
9 changed files with 25 additions and 17 deletions
@@ -1,4 +1,4 @@
// "Remove initializer from property" "true"
abstract class A {
abstract var i : Int<caret>
abstract var i<caret> : Int
}
@@ -1,4 +1,4 @@
// "Remove initializer from property" "true"
abstract class A {
abstract var i : Int<caret>
abstract var i<caret> : Int
}
@@ -1,5 +1,4 @@
// "Remove getter and initializer from property" "true"
abstract class B {
abstract val i : <caret>Int
abstract val i<caret> : Int
}
@@ -9,7 +9,7 @@ import java.util.List
class M {
trait A {
val l : <caret>List<Int>?
val l<caret> : List<Int>?
}
}
}
@@ -3,6 +3,6 @@ package a
class M {
trait A {
abstract val e : <caret>Exception
abstract val e<caret> : Exception
}
}
@@ -3,6 +3,6 @@ package a
class M {
trait A {
abstract val i : <caret>Int
abstract val i<caret> : Int
}
}
@@ -6,6 +6,6 @@ import java.util.List
class M {
trait A {
abstract val l : <caret>List<Int>?
abstract val l<caret> : List<Int>?
}
}