Use BooleanArray.copyOf() instead of Arrays.copyOf(arr, newLength)
Proprietaryjava.util.Arrays.copyOf(arr: boolean[], newLength) is JVM-only; arr.copyOf(newLength) is the multiplatform Kotlin extension.
org. openrewrite. kotlin. migrate. UseBooleanArrayCopyOf$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. migrate. UseBooleanArrayCopyOf$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.