Prefer Sets#immutableEnumSet(Iterable) over less efficient alternatives
Apache 2.0Warning: this rule is not completely behavior preserving: while the
original code produces a set that iterates over its elements in the same order as the input
Iterable, the replacement code iterates over the elements in enum definition order.
tech. picnic. errorprone. refasterrules. ImmutableEnumSetRulesRecipes$SetsImmutableEnumSetIterableRecipemod run . --recipe= 'tech. picnic. errorprone. refasterrules. ImmutableEnumSetRulesRecipes$SetsImmutableEnumSetIterableRecipe'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.