Modernize collections
ProprietaryReplace the legacy synchronized types Hashtable, Vector, Stack, and StringBuffer with their modern unsynchronized counterparts HashMap, ArrayList, Deque/ArrayDeque, and StringBuilder. Each replacement is only applied when program analysis shows the instance is a local variable that never leaves its method and is used only in ways its replacement supports, so the synchronization it provided is redundant.
io. moderne. staticanalysis. ModernizeCollectionsmod run . --recipe= io. moderne. staticanalysis. ModernizeCollectionsInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.