Use Double.withSign instead of java.lang.Math.copySign
ProprietaryMath.copySign(magnitude, sign) becomes magnitude.withSign(sign) — the multiplatform Kotlin extension expresses the same magnitude/sign combination as a receiver call.
org. openrewrite. kotlin. migrate. UseDoubleWithSign$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. migrate. UseDoubleWithSign$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.