Prefer new TreeMap<>(Comparator)
MSALPrefer the Java standard library over third-party usage of Guava in simple cases like this.
org. openrewrite. java. migrate. guava. NoGuavaRefasterRecipes$MapsNewTreeMapWithComparatorRecipemod run . --recipe= 'org. openrewrite. java. migrate. guava. NoGuavaRefasterRecipes$MapsNewTreeMapWithComparatorRecipe'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.