Prefer Collection.stream().allMatch(Predicate)

MSAL

Prefer Collection.stream().allMatch(Predicate) over Iterables.all(Collection, Predicate).

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

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().allMatch(Predicate)