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