Use Int.mod() instead of java.lang.Math.floorMod
ProprietaryMath.floorMod(a, b) becomes a.mod(b). Kotlin's Int.mod uses floored-division semantics — the result is non-negative when the divisor is positive — matching Math.floorMod. Reads as a receiver call and is multiplatform.
org. openrewrite. kotlin. migrate. UseIntMod$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. migrate. UseIntMod$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.