Adjust "Remove explicit type" intention to properties with getters

#KT-14794 Fixed
This commit is contained in:
Denis Zharkov
2016-11-14 14:26:29 +03:00
parent e25c4b96ad
commit b5a6cbd188
10 changed files with 23 additions and 6 deletions
@@ -1,7 +1,8 @@
// "Delete redundant extension property" "false"
// ACTION: Create test
// ACTION: Remove explicit type specification
import java.io.File
var File.<caret>name: String
get() = getName()
set(value) {}
set(value) {}
@@ -1,6 +1,7 @@
// "Delete redundant extension property" "false"
// ACTION: Convert property to function
// ACTION: Move to companion object
// ACTION: Remove explicit type specification
class C : Thread() {
val Thread.<caret>priority: Int
@@ -1,5 +1,6 @@
// "Delete redundant extension property" "false"
// ACTION: Move to companion object
// ACTION: Remove explicit type specification
class C : Thread() {
var Thread.<caret>priority: Int
@@ -1,8 +1,9 @@
// "Delete redundant extension property" "false"
// ACTION: Create test
// ACTION: Remove explicit type specification
var Thread.<caret>priority: Int
get() = getPriority() + 1
set(value) {
setPriority(value)
}
}
@@ -1,6 +1,7 @@
// "Delete redundant extension property" "false"
// ACTION: Convert property to function
// ACTION: Create test
// ACTION: Remove explicit type specification
import java.io.File
public val File.<caret>parent: File?
@@ -1,5 +1,6 @@
// "Delete redundant extension property" "false"
// ACTION: Create test
// ACTION: Remove explicit type specification
var Thread.<caret>priority: Int
get() = this.getPriority()