Replace enumValues<T>() with enumEntries<T>()
ProprietaryReplace 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. ReplaceEnumValuesFunctionWithEnumEntriesmod run . --recipe= org. openrewrite. kotlin. migrate. ReplaceEnumValuesFunctionWithEnumEntriesInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.