Cleanup deprecated symbol usages in testData
This commit is contained in:
+1
-1
@@ -3,5 +3,5 @@
|
||||
// PARAM_DESCRIPTOR: value-parameter val it: kotlin.collections.Map.Entry<(kotlin.Boolean..kotlin.Boolean?), (kotlin.Boolean..kotlin.Boolean?)> defined in test.<anonymous>
|
||||
// PARAM_TYPES: kotlin.collections.Map.Entry<(kotlin.Boolean..kotlin.Boolean?), (kotlin.Boolean..kotlin.Boolean?)>
|
||||
fun test() {
|
||||
J.getMap().filter { <selection>it.getKey()</selection> }
|
||||
J.getMap().filter { <selection>it.key</selection> }
|
||||
}
|
||||
+1
-1
@@ -6,4 +6,4 @@ fun test() {
|
||||
J.getMap().filter { b(it) }
|
||||
}
|
||||
|
||||
private fun b(it: Map.Entry<Boolean, Boolean>): Boolean? = it.getKey()
|
||||
private fun b(it: Map.Entry<Boolean, Boolean>): Boolean? = it.key
|
||||
@@ -1,2 +1,2 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo(list: List<String>) = list.filter <selection>{ it.length() > 6 }</selection>
|
||||
fun foo(list: List<String>) = list.filter <selection>{ it.length > 6 }</selection>
|
||||
@@ -1,2 +1,2 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo(list: List<String>, function: () -> (String) -> Boolean = { { it.length() > 6 } }) = list.filter(function())
|
||||
fun foo(list: List<String>, function: () -> (String) -> Boolean = { { it.length > 6 } }) = list.filter(function())
|
||||
@@ -1,2 +1,2 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo(list: List<String>) = list.filter <selection>{ it.length() > 6 }</selection>
|
||||
fun foo(list: List<String>) = list.filter <selection>{ it.length > 6 }</selection>
|
||||
@@ -1,2 +1,2 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo(list: List<String>, function: (String) -> Boolean = { it.length() > 6 }) = list.filter(function)
|
||||
fun foo(list: List<String>, function: (String) -> Boolean = { it.length > 6 }) = list.filter(function)
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo(c : Collection<String>){
|
||||
c.filterTo(ArrayList<String>())<selection>{ it.length() > 1 }</selection>
|
||||
c.filterTo(ArrayList<String>())<selection>{ it.length > 1 }</selection>
|
||||
}
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo(c : Collection<String>){
|
||||
val predicate: (String) -> Boolean = { it.length() > 1 }
|
||||
val predicate: (String) -> Boolean = { it.length > 1 }
|
||||
c.filterTo(ArrayList<String>(), predicate)
|
||||
}
|
||||
idea/testData/refactoring/move/kotlin/moveTopLevelDeclarations/misc/selfReferences/after/target/A.kt
Vendored
+2
-2
@@ -1,8 +1,8 @@
|
||||
package target
|
||||
|
||||
class A(val a: A, val a2: A) {
|
||||
val klass = javaClass<A>()
|
||||
val klass2 = javaClass<A>()
|
||||
val klass = A::class.java
|
||||
val klass2 = A::class.java
|
||||
val aa = A(a)
|
||||
val aa2 = A(a)
|
||||
}
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
package source
|
||||
|
||||
class <caret>A(val a: A, val a2: source.A) {
|
||||
val klass = javaClass<A>()
|
||||
val klass2 = javaClass<source.A>()
|
||||
val klass = A::class.java
|
||||
val klass2 = source.A::class.java
|
||||
val aa = A(a)
|
||||
val aa2 = source.A(a)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user