hashCode() should not be called on array instances

MSAL

Replace 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.RemoveHashCodeCallsFromArrayInstances
mod run . --recipe=org.openrewrite.staticanalysis.RemoveHashCodeCallsFromArrayInstances

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