MapRules Refaster recipes
Apache 2.0Refaster rules related to expressions dealing with Map instances.
Source.
tech. picnic. errorprone. refasterrules. MapRulesRecipesmod run . --recipe= tech. picnic. errorprone. refasterrules. MapRulesRecipesInstall 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.
- Refaster template
MapRules.MapGet - Prefer
Map#getOrDefault(Object, Object)over more contrived alternatives - Refaster template
MapRules.MapIsEmpty - Refaster template
MapRules.MapSize - Refaster template
MapRules.MapContainsKey - Refaster template
MapRules.MapContainsValue - Refaster template
MapRules.MapKeySetStream - Refaster template
MapRules.MapValuesStream