Prefer Sets#toImmutableEnumSet() 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 encounter order, the replacement code iterates over the elements in enum definition order.
tech. picnic. errorprone. refasterrules. ImmutableEnumSetRulesRecipes$StreamCollectToImmutableEnumSetRecipemod run . --recipe= 'tech. picnic. errorprone. refasterrules. ImmutableEnumSetRulesRecipes$StreamCollectToImmutableEnumSetRecipe'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.