Switching on an enum should be (almost) as efficient as switching on an int.
- duplicates
-
JDK-4872657 enum: switch on enum should use switch instructions, not chained if stmts
-
- Resolved
-
JDK-4872657
enum: switch on enum should use switch instructions, not chained if stmts