Prefer java.util.function.Predicate

MSAL

Prefer java.util.function.Predicate instead of using com.google.common.base.Predicate.

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

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. Change Guava's Predicate into java.util.function.Predicate where possible