Use CharArray.contentToString() instead of Arrays.toString(arr)

Proprietary

java.util.Arrays.toString(arr: char[]) is JVM-only; arr.contentToString() is the multiplatform Kotlin extension. Note this produces a bracketed list — use String(arr) if you want a String view of the characters.

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