Use IntArray.sort() instead of Arrays.sort(arr)
Proprietaryjava.util.Arrays.sort(arr: int[]) is JVM-only; arr.sort() is the multiplatform Kotlin extension that sorts in place ascending.
org. openrewrite. kotlin. migrate. UseIntArraySort$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. migrate. UseIntArraySort$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.