Merge ReplaceJavaIntegerToStringWithMemberInspection and ReplaceJavaStaticMethodWithTopLevelFunctionInspection

Relates to #KT-12721
This commit is contained in:
Dmitry Gridin
2019-04-11 11:27:14 +07:00
parent 6b7f4dda31
commit 6afc0367c0
19 changed files with 72 additions and 116 deletions
@@ -1 +0,0 @@
org.jetbrains.kotlin.idea.inspections.ReplaceJavaIntegerToStringWithMemberInspection
@@ -0,0 +1,5 @@
// WITH_RUNTIME
fun foo() {
val t = Integer.<caret>toString(5) + 7
}
@@ -0,0 +1,5 @@
// WITH_RUNTIME
fun foo() {
val t = 5.toString() + 7
}
@@ -0,0 +1,6 @@
// WITH_RUNTIME
fun foo() {
val b = listOf(42, 10)
println(Integer<caret>.toString(b.first(), b.last()).let{it} + 1)
}
@@ -0,0 +1,6 @@
// WITH_RUNTIME
fun foo() {
val b = listOf(42, 10)
println(b.first().toString(b.last()).let{it} + 1)
}