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