Does proguard automatically converts enums to integer for memory optimization or I have to configure it to do this? If I do have to configure what is the configuration?
Does proguard automatically converts enums to integer for memory optimization or I have to configure it to do this? If I do have to configure what is the configuration?
这一优化被列在ProGuard的optimizations page中.它似乎是默认优化之一,但如果需要更多控制(例如,禁用除枚举取消装箱之外的所有class/*
个优化),可以显式指定它(与其他优化一样).
class/unboxing/enum
尽可能将枚举类型简化为整数常量.