Use kotlin.math.abs instead of java.lang.Math.abs

Proprietary

kotlin.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$KtRecipe
mod 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.