Merge ReplaceJavaIntegerToStringWithMemberInspection and ReplaceJavaStaticMethodWithTopLevelFunctionInspection
Relates to #KT-12721
This commit is contained in:
-1
@@ -1 +0,0 @@
|
||||
org.jetbrains.kotlin.idea.inspections.ReplaceJavaIntegerToStringWithMemberInspection
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun foo() {
|
||||
val t = Integer.<caret>toString(5) + 7
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun foo() {
|
||||
val t = 5.toString() + 7
|
||||
}
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun foo() {
|
||||
val b = listOf(42, 10)
|
||||
println(Integer<caret>.toString(b.first(), b.last()).let{it} + 1)
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun foo() {
|
||||
val b = listOf(42, 10)
|
||||
println(b.first().toString(b.last()).let{it} + 1)
|
||||
}
|
||||
Reference in New Issue
Block a user