Use CharArray.binarySearch() instead of Arrays.binarySearch(arr, key)
Proprietaryjava.util.Arrays.binarySearch(arr: char[], key: Char) is JVM-only; arr.binarySearch(key) is the multiplatform Kotlin extension.
org. openrewrite. kotlin. migrate. UseCharArrayBinarySearch$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. migrate. UseCharArrayBinarySearch$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.