Use Long.mod() instead of java.lang.Math.floorMod
ProprietaryMath.floorMod(a, b) becomes a.mod(b) for the (Long, Long) overload. Kotlin's Long.mod matches Math.floorMod floored-division semantics.
org. openrewrite. kotlin. migrate. UseLongMod$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. migrate. UseLongMod$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.