Prefer List.of(..)
MSALPrefer List.of(..) instead of using Collections.unmodifiableList(Arrays.asList(..)) in Java 9 or higher.
org. openrewrite. java. migrate. util. MigrateCollectionsUnmodifiableListmod run . --recipe= org. openrewrite. java. migrate. util. MigrateCollectionsUnmodifiableListInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.