Fixes for ReplaceArraysCopyOfWithCopyOfInspection
- Reduce applicability range - Don't fix reporting level, otherwise it won't be possible to change it in settings - Using isCalling utility
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
// WITH_RUNTIME
|
||||
fun test() {
|
||||
val array = intArrayOf(1, 2, 3)
|
||||
val result = java.util.Arrays.<caret>copyOf(array, 3)
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// WITH_RUNTIME
|
||||
fun test() {
|
||||
val array = intArrayOf(1, 2, 3)
|
||||
val result = array.copyOf(3)
|
||||
}
|
||||
@@ -3,5 +3,5 @@ import java.util.Arrays
|
||||
|
||||
fun test() {
|
||||
val array = intArrayOf(1, 2, 3)
|
||||
val result = <caret>Arrays.copyOf(array, 3)
|
||||
val result = Arrays.<caret>copyOf(array, 3)
|
||||
}
|
||||
Reference in New Issue
Block a user