Mert
What do I gain and lose by moving my status class constants to backed enums?
Add a backed enum on the same integer values, use tryFrom() at the boundaries, and keep the old constants as deprecated aliases while you move call sites.
Tag
Improving code without changing behaviour: small steps, measurable gain.
1 answered questions carry this tag.
Add a backed enum on the same integer values, use tryFrom() at the boundaries, and keep the old constants as deprecated aliases while you move call sites.