Remove toString() calls on arrays

MSAL

The result from toString() calls on arrays is largely useless. The output does not actually reflect the contents of the array. Arrays.toString(array) should be used instead as it gives the contents of the array. Since arrays do not override toString() from Object, calling it produces only the type name and memory address, which is rarely what was intended.

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

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