https://www.guardsquare.com/en/proguard/manual/optimizations says
class/unboxing/enum
Simplifies enum types to integer constants, whenever possible.
But the obvious question is, when is it possible? I assume the enum must not have fields/methods? Does it apply only to local variables or to method arguments as well?
In particular, if I have a enum with a field and a getter for this field, I could convert it to a static method switching on the enum; will this enable the optimization?