Find java.util.Optional friction inside Kotlin
ProprietaryBundle every Optional-related search: declarations that return or accept Optional<T>, Optional.ofNullable(...) constructions, and .isPresent/.get()/.orElse(...) consumption sites. Once an upstream switches Optional<T> to T?, each flagged call site collapses to a ?: / ?.let { … } / !! expression.
org. openrewrite. kotlin. interop. FindOptionalFriction$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. interop. FindOptionalFriction$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.