Inspection to replace Java Collections methods: extend set of types
So #KT-22038 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
bd8a4d78fa
commit
be4739e65e
@@ -0,0 +1,7 @@
|
||||
// RUNTIME_WITH_FULL_JDK
|
||||
import java.util.*
|
||||
|
||||
fun test () {
|
||||
val list: ArrayList<Int> = ArrayList()
|
||||
<caret>Collections.sort(list)
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// RUNTIME_WITH_FULL_JDK
|
||||
import java.util.*
|
||||
|
||||
fun test () {
|
||||
val list: ArrayList<Int> = ArrayList()
|
||||
list.sort()
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// RUNTIME_WITH_FULL_JDK
|
||||
import java.util.*
|
||||
|
||||
fun test () {
|
||||
val list: LinkedList<String> = LinkedList()
|
||||
<caret>Collections.sort(list)
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// RUNTIME_WITH_FULL_JDK
|
||||
import java.util.*
|
||||
|
||||
fun test () {
|
||||
val list: LinkedList<String> = LinkedList()
|
||||
list.sort()
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// RUNTIME_WITH_FULL_JDK
|
||||
import java.util.*
|
||||
|
||||
fun test () {
|
||||
val list: Vector<String> = Vector()
|
||||
<caret>Collections.sort(list)
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// RUNTIME_WITH_FULL_JDK
|
||||
import java.util.*
|
||||
|
||||
fun test () {
|
||||
val list: Vector<String> = Vector()
|
||||
list.sort()
|
||||
}
|
||||
Reference in New Issue
Block a user