Find Arrays.asList(...) calls

Proprietary

Arrays.asList(a, b, c) is the Java idiom for a small read-only List. In Kotlin, listOf(a, b, c) is more concise, properly read-only (the returned list is structurally immutable), and avoids leaking the array-backed quirk where set is allowed but add is not.

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