Use FloatArray.contentEquals() instead of Arrays.equals(a, b)

Proprietary

java.util.Arrays.equals(a: float[], b: float[]) is JVM-only; a.contentEquals(b) is the multiplatform Kotlin extension. Like Arrays.equals, NaN compares equal to NaN.

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