Replace enumValues<T>() with enumEntries<T>()

Proprietary

Replace calls to enumValues<T>() with enumEntries<T>(). The enumEntries function returns an efficient immutable list instead of creating a new array. Deprecated since Kotlin 1.9, recommended replacement for Kotlin 2.x.

org.openrewrite.kotlin.migrate.ReplaceEnumValuesFunctionWithEnumEntries
mod run . --recipe=org.openrewrite.kotlin.migrate.ReplaceEnumValuesFunctionWithEnumEntries

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.