ReplaceJavaStaticMethodWithKotlinAnalogInspection: add CommentSaver for case with transform to extension

This commit is contained in:
Dmitry Gridin
2019-07-10 12:11:11 +03:00
parent 56d2961cd9
commit beba1d82fc
12 changed files with 105 additions and 1 deletions
@@ -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)
}
@@ -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)
}
@@ -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
}
@@ -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
}