Prefer java.util.Objects#hash

MSAL

Prefer java.util.Objects#hash instead of using com.google.common.base.Objects#hashCode or com.google.common.base.Objects hash(..).

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

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 method name com.google.common.base.Objects hashCode(..) to hash
  2. Change method target to static