Improve Java↔Kotlin interop ergonomics

Proprietary

Opinionated bundle of every interop recipe in this module: the Optional.of(x).get() collapse plus search-only flags for Java idioms that have first-class Kotlin replacements (Optional, CompletableFuture, Stream, Collections factories, @Jvm*-annotation gaps, Java-style call shapes, reactive return types, non-injected clocks). For diff-only output, use ImproveKotlinInterop.

org.openrewrite.kotlin.interop.Interop$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.interop.Interop$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. Use x instead of Optional.of(x).get()
  2. Find Java↔Kotlin interop friction points