Find Kotlin declarations missing @Jvm* interop annotations

Proprietary

Search-only bundle of declarations where the JVM-visible API surface would benefit from one of the @JvmStatic / @JvmField / @JvmOverloads / @JvmName / @Throws annotations. Each match is a candidate for review — none should be applied blindly, but the absence is the primary friction Java callers feel.

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

Recipe list

It runs these recipes, in this order.

  1. Find companion object functions missing @JvmStatic
  2. Find const val / companion val declarations missing @JvmField
  3. Find functions with default parameters missing @JvmOverloads
  4. Find top-level functions missing @JvmName
  5. Find val isX Boolean properties missing @get:JvmName
  6. Find functions with throw of a checked exception missing @Throws
  7. Find interface declarations with default-method bodies
  8. Find @RequiresOptIn annotation declarations