Find java.util.stream.Stream friction inside Kotlin

Proprietary

Bundle every Stream-related search: declarations returning Stream<T>, Collectors.toList() terminals, filter.map chains, and Stream.of constructions. Each match has a Kotlin equivalent in Sequence/Iterable/Flow that's idiomatic at the same call site.

org.openrewrite.kotlin.interop.FindStreamFriction$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.interop.FindStreamFriction$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 functions returning java.util.stream.Stream<T>
  2. Find stream.collect(Collectors.toList()) calls
  3. Find stream.filter(...).map(...) chains
  4. Find Stream.of(...) calls