void () { final String bar = "bar"; String key = "key"; switch (key) { case "": { System.out.println("Nothing"); break; } case "foo": // fallthrough works as before case bar: // local final variables are ok case BAZ: { // constants are ok System.out.println("Matched key"); break; } default: break; } }