Prefer Map#entry(Object, Object) over non-JDK alternatives or the associated constructor
Apache 2.0Warning: while both Maps#immutableEntry(Object, Object) and AbstractMap.SimpleImmutableEntry allow null keys and values, the preferred Map#entry(Object, Object) variant does not. Moreover, the Map.Entry instances produced
by the former approaches are java.io.Serializable, while this does not hold for the
object returned by the preferred approach.
tech. picnic. errorprone. refasterrules. MapEntryRulesRecipes$MapEntryRecipemod run . --recipe= 'tech. picnic. errorprone. refasterrules. MapEntryRulesRecipes$MapEntryRecipe'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.