Replace popup with several quick-fixes in ReplaceJavaStaticMethodWithKotlinAnalog
This commit is contained in:
+1
@@ -1,3 +1,4 @@
|
||||
// FIX: Replace with `roundToInt` function
|
||||
// WITH_RUNTIME
|
||||
fun test(x: Double) {
|
||||
<caret>Math.round(x)
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
import kotlin.math.roundToInt
|
||||
|
||||
// FIX: Replace with `roundToInt` function
|
||||
// WITH_RUNTIME
|
||||
fun test(x: Double) {
|
||||
x.roundToInt()
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// FIX: Replace with `roundToLong` function
|
||||
// WITH_RUNTIME
|
||||
fun test(x: Double) {
|
||||
<caret>Math.round(x)
|
||||
}
|
||||
+1
@@ -1,5 +1,6 @@
|
||||
import kotlin.math.roundToLong
|
||||
|
||||
// FIX: Replace with `roundToLong` function
|
||||
// WITH_RUNTIME
|
||||
fun test(x: Double) {
|
||||
x.roundToLong()
|
||||
Reference in New Issue
Block a user