MapRules Refaster recipes

Apache 2.0

Refaster rules related to expressions dealing with Map instances. Source.

tech.picnic.errorprone.refasterrules.MapRulesRecipes
mod run . --recipe=tech.picnic.errorprone.refasterrules.MapRulesRecipes

Install 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.

  1. Refaster template MapRules.MapGet
  2. Prefer Map#getOrDefault(Object, Object) over more contrived alternatives
  3. Refaster template MapRules.MapIsEmpty
  4. Refaster template MapRules.MapSize
  5. Refaster template MapRules.MapContainsKey
  6. Refaster template MapRules.MapContainsValue
  7. Refaster template MapRules.MapKeySetStream
  8. Refaster template MapRules.MapValuesStream