Use ByteArray.binarySearch() instead of Arrays.binarySearch(arr, key)

Proprietary

java.util.Arrays.binarySearch(arr: byte[], key: Byte) is JVM-only; arr.binarySearch(key) is the multiplatform Kotlin extension.

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