Find object Constants { const val A = ... } static-constants holders
ProprietaryAn object Constants whose body is exclusively const val declarations is a holder for compile-time constants. Promote each const val to a top-level declaration — both forms inline identically at the JVM bytecode level, but the top-level form is one import shorter at every call site.
org. openrewrite. kotlin. interop. FindStaticHolderObject$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. interop. FindStaticHolderObject$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.