Add "replace map.put with assignment" to J2K
Related to KT-21502
This commit is contained in:
@@ -6,5 +6,5 @@ class A {
|
||||
}
|
||||
|
||||
fun foo() {
|
||||
A().put<caret>(1, "foo")
|
||||
A().<caret>put(1, "foo")
|
||||
}
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
val map = mutableMapOf(42 to "foo")
|
||||
|
||||
fun foo() = map.put<caret>(60, "bar")
|
||||
fun foo() = map.<caret>put(60, "bar")
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun foo(map: MutableMap<Int, String>) {
|
||||
map.put<caret>(42, "foo")
|
||||
map.<caret>put(42, "foo")
|
||||
}
|
||||
@@ -2,6 +2,6 @@
|
||||
|
||||
class MyMap() : HashMap<String, String>() {
|
||||
init {
|
||||
this.put<caret>("foo", "bar")
|
||||
this.<caret>put("foo", "bar")
|
||||
}
|
||||
}
|
||||
@@ -2,5 +2,5 @@
|
||||
|
||||
fun foo() {
|
||||
val map = mutableMapOf(42 to "foo")
|
||||
map.put<caret>(60, "bar")
|
||||
map.<caret>put(60, "bar")
|
||||
}
|
||||
@@ -2,5 +2,5 @@
|
||||
|
||||
fun foo() {
|
||||
var map = mutableMapOf(42 to "foo")
|
||||
map.put<caret>(60, "bar")
|
||||
map.<caret>put(60, "bar")
|
||||
}
|
||||
Reference in New Issue
Block a user