Use Array.contentEquals() instead of Arrays.equals(a, b)
Proprietaryjava.util.Arrays.equals(a: Object[], b: Object[]) is JVM-only; a.contentEquals(b) is the multiplatform Kotlin extension. For nested arrays use the deep variant.
org. openrewrite. kotlin. migrate. UseArrayContentEquals$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. migrate. UseArrayContentEquals$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.