Use of @EqualsAndHashCode on Recipe

MSAL

Recipes are value objects, so should use @EqualsAndHashCode(callSuper = false). While in most cases recipes do not extend other classes and so the option is moot, as a matter of stylistic consistency and to enforce the idea that recipes are value objects, this value should be set to false.

org.openrewrite.java.recipes.RecipeEqualsAndHashCodeCallSuper
mod run . --recipe=org.openrewrite.java.recipes.RecipeEqualsAndHashCodeCallSuper

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.