mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-06 04:11:31 +07:00
20 lines
356 B
Java
20 lines
356 B
Java
// "Replace with old style 'switch' statement" "true"
|
|
import java.util.*;
|
|
|
|
public class Main {
|
|
void foo(E e) {
|
|
switch (e) {
|
|
case E1:
|
|
case E2:
|
|
System.out.println("oops");
|
|
break;
|
|
default:
|
|
System.out.println("impossible");
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
enum E {
|
|
E1, E2;
|
|
} |