MapEntryRules Refaster recipes

Apache 2.0

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

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

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. Prefer Map#entry(Object, Object) over non-JDK alternatives or the associated constructor
  2. Refaster template MapEntryRules.ComparingByKey
  3. Refaster template MapEntryRules.ComparingByKeyWithComparator
  4. Refaster template MapEntryRules.ComparingByValue
  5. Refaster template MapEntryRules.ComparingByValueWithComparator