Prefer Collection.stream().map(Function) over Collections2.transform

MSAL

Prefer Collection.stream().map(Function) over Collections2.transform(Collection, Function).

org.openrewrite.java.migrate.guava.NoGuavaCollections2Transform
mod run . --recipe=org.openrewrite.java.migrate.guava.NoGuavaCollections2Transform

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. Prefer Collection.stream().map(Function) over Collections2.transform