Adjust "Remove explicit type" intention to properties with getters
#KT-14794 Fixed
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user