Replace popup with several quick-fixes in ReplaceJavaStaticMethodWithKotlinAnalog

This commit is contained in:
Dmitry Gridin
2019-04-12 20:13:20 +07:00
parent ee304e92b5
commit fd47dc9b88
16 changed files with 97 additions and 49 deletions
@@ -1,3 +1,4 @@
// FIX: Replace with `roundToInt` function
// WITH_RUNTIME
fun test(x: Double) {
<caret>Math.round(x)
@@ -0,0 +1,7 @@
import kotlin.math.roundToInt
// FIX: Replace with `roundToInt` function
// WITH_RUNTIME
fun test(x: Double) {
x.roundToInt()
}
@@ -0,0 +1,5 @@
// FIX: Replace with `roundToLong` function
// WITH_RUNTIME
fun test(x: Double) {
<caret>Math.round(x)
}
@@ -1,5 +1,6 @@
import kotlin.math.roundToLong
// FIX: Replace with `roundToLong` function
// WITH_RUNTIME
fun test(x: Double) {
x.roundToLong()