Rename methods named hashcode, equal, or tostring

MSAL

Methods should not be named hashcode, equal, or tostring. Any of these are confusing as they appear to be intended as overridden methods from the Object base class, despite being case-insensitive. These near-miss names are almost certainly spelling mistakes that silently introduce a new method instead of overriding the intended one.

org.openrewrite.staticanalysis.RenameMethodsNamedHashcodeEqualOrToString
mod run . --recipe=org.openrewrite.staticanalysis.RenameMethodsNamedHashcodeEqualOrToString

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