Prefer Map#getOrDefault(Object, Object) over more contrived alternatives
Apache 2.0Warning: this rewrite changes behavior if defaultValue is null: java.util.Objects#requireNonNullElse throws a NullPointerException in
that case, while Map#getOrDefault(Object, Object) does not.
tech. picnic. errorprone. refasterrules. MapRulesRecipes$MapGetOrDefaultRecipemod run . --recipe= 'tech. picnic. errorprone. refasterrules. MapRulesRecipes$MapGetOrDefaultRecipe'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.