Use Int.compareTo instead of java.lang.Integer.compare

Proprietary

Integer.compare(a, b) is the JVM-only static comparator; the multiplatform a.compareTo(b) reads as a receiver call and returns the same Int ordering.

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