Replace invocations of Collections#sort(List, Comparator) with List#sort(Comparator)
MSALThe java.util.Collections#sort(..) implementation defers to java.util.List#sort(Comparator), so call java.util.List#sort(Comparator) directly for better readability.
org. openrewrite. staticanalysis. UseListSortmod run . --recipe= org. openrewrite. staticanalysis. UseListSortInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.