Find const val / companion val declarations missing @JvmField

Proprietary

A companion-object val without @JvmField is exposed to Java as Outer.Companion.getX() — a getter on a synthetic singleton. @JvmField lifts the property to a true static public final field on Outer, matching the Java idiom of named constants.

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