ReplaceJavaStaticMethodWithKotlinAnalogInspection: introduce Transformation for extension with non-null arguments

This commit is contained in:
Dmitry Gridin
2019-07-09 17:35:04 +03:00
parent 8b8858b223
commit 8314dbffd5
5 changed files with 45 additions and 2 deletions
@@ -0,0 +1,9 @@
// WITH_RUNTIME
// PROBLEM: none
import java.util.Arrays
fun test() {
val a = arrayOf(1, 2, 3)
val b: Array<*>? = null
val result = Arrays.<caret>deepEquals(a, b)
}
@@ -0,0 +1,9 @@
// WITH_RUNTIME
// PROBLEM: none
import java.util.Arrays
fun test() {
val a = arrayOf(1, 2, 3)
val b: Array<*>? = null
val result = Arrays.<caret>equals(a, b)
}