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

Proprietary

java.util.Arrays.toString(arr: Object[]) is JVM-only; arr.contentToString() is the multiplatform Kotlin extension. For nested arrays use the deep variant.

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