hashCode() should not be called on array instances
MSALReplace hashCode() calls on arrays with Arrays.hashCode() because the results from hashCode() are not helpful. Arrays inherit hashCode() from Object, which returns an identity-based value unrelated to the array contents, so two arrays with identical elements will produce different hash codes.
org. openrewrite. staticanalysis. RemoveHashCodeCallsFromArrayInstancesmod run . --recipe= org. openrewrite. staticanalysis. RemoveHashCodeCallsFromArrayInstancesInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.