Refaster template CollectionRules.CollectionSize

Apache 2.0

Prefer Collection#size() over non-JDK or more verbose alternatives.

tech.picnic.errorprone.refasterrules.CollectionRulesRecipes$CollectionSizeRecipe
mod run . --recipe='tech.picnic.errorprone.refasterrules.CollectionRulesRecipes$CollectionSizeRecipe'

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.