Prefer java.util.function.Function

MSAL

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

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

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 Function.compose(Function)
  2. Change type com.google.common.base.Function to java.util.function.Function