Use Long.mod(Int) instead of java.lang.Math.floorMod

Proprietary

Math.floorMod(a: Long, b: Int): Int becomes a.mod(b). Like the Java overload, Long.mod(Int) returns an Int.

org.openrewrite.kotlin.migrate.UseLongModInt$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.migrate.UseLongModInt$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.