ReplaceJavaStaticMethodWithKotlinAnalogInspection: add CommentSaver for case with transform to extension
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
// WITH_RUNTIME
|
||||
import java.util.Arrays
|
||||
|
||||
fun test() {
|
||||
val a = arrayOf(1, 2, 3)
|
||||
val b = arrayOf(1, 2, 3)
|
||||
/* comment */Arrays.<caret>equals(a, /* comment2 */b)
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// WITH_RUNTIME
|
||||
import java.util.Arrays
|
||||
|
||||
fun test() {
|
||||
val a = arrayOf(1, 2, 3)
|
||||
val b = arrayOf(1, 2, 3)
|
||||
/* comment *//* comment2 */a.contentEquals(b)
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// WITH_RUNTIME
|
||||
import java.util.Arrays
|
||||
|
||||
fun test() {
|
||||
val a = arrayOf(1, 2, 3)
|
||||
val b = arrayOf(1, 2, 3)
|
||||
// comment
|
||||
Arrays.<caret>equals(a, b) //comment2
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// WITH_RUNTIME
|
||||
import java.util.Arrays
|
||||
|
||||
fun test() {
|
||||
val a = arrayOf(1, 2, 3)
|
||||
val b = arrayOf(1, 2, 3)
|
||||
// comment
|
||||
a.contentEquals(b) //comment2
|
||||
}
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
// WITH_RUNTIME
|
||||
import java.lang.Math.abs
|
||||
|
||||
fun x() {
|
||||
/*dd*/<caret>abs(5/*s*/)
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// WITH_RUNTIME
|
||||
import java.lang.Math.abs
|
||||
|
||||
fun x() {
|
||||
/*dd*/kotlin.math.abs(5/*s*/)
|
||||
}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
// WITH_RUNTIME
|
||||
import java.lang.Math.abs
|
||||
|
||||
fun x() {
|
||||
// comment
|
||||
<caret>abs(5)
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// WITH_RUNTIME
|
||||
import java.lang.Math.abs
|
||||
|
||||
fun x() {
|
||||
// comment
|
||||
kotlin.math.abs(5)
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
// WITH_RUNTIME
|
||||
fun x() {
|
||||
// comment
|
||||
Math.<caret>abs(5)
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import kotlin.math.abs
|
||||
|
||||
// WITH_RUNTIME
|
||||
fun x() {
|
||||
// comment
|
||||
abs(5)
|
||||
}
|
||||
Reference in New Issue
Block a user