Remove explicit casts on Arrays.asList(..).toArray()
MSALConvert code like (Integer[]) Arrays.asList(1, 2, 3).toArray() to Arrays.asList(1, 2, 3).toArray(new Integer[0]).
org. openrewrite. java. migrate. CastArraysAsListToListmod run . --recipe= org. openrewrite. java. migrate. CastArraysAsListToListInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.