Use kotlin.math.abs instead of java.lang.Math.abs
Proprietarykotlin.math.abs is the multiplatform-friendly form. Java's Math.abs only works on the JVM and is a thin pass-through; the Kotlin call site reads more naturally in shared modules.
org. openrewrite. kotlin. migrate. UseKotlinMathAbs$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. migrate. UseKotlinMathAbs$KtRecipe'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.