Find Flux.fromIterable(listOf(...)) patterns
ProprietaryWhen the source list is a constant listOf(a, b, c) known at compile time, Flux.just(a, b, c) is the same shape with one fewer allocation (no intermediate List). fromIterable only earns its keep when the iterable is already in hand.
org. openrewrite. kotlin. spring. FindFluxFromIterableWithList$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. spring. FindFluxFromIterableWithList$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.