You do not need to write MyEnum.CONST1. You can use static import on it, and then you can reference CONST1 without MyEnum.
The design of the switch was provided as a convenience, so they made it as convenient as possible and do not require a name such as an enumeration. It also makes it more obvious that you can only use instances of one enumeration, and you cannot do things like this:
switch (val) {
case MyEnum1.VAL1:
break;
case MyEnum2.VAL1:
}
source
share