< prev index next >
test/langtools/tools/javac/diags/examples/SwitchRules.java
Print this page
*** 21,31 ****
* questions.
*/
// key: compiler.misc.feature.switch.rules
// key: compiler.warn.preview.feature.use.plural
! // options: --enable-preview -source 12 -Xlint:preview
class SwitchExpressions {
void m(int i) {
switch (i) {
default -> { break; }
--- 21,31 ----
* questions.
*/
// key: compiler.misc.feature.switch.rules
// key: compiler.warn.preview.feature.use.plural
! // options: --enable-preview -source 13 -Xlint:preview
class SwitchExpressions {
void m(int i) {
switch (i) {
default -> { break; }
< prev index next >