mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 05:09:37 +07:00
Fixes IDEA-199692 Quickfix to delete unreachable switch branch reported by "constant conditions & exceptions"
17 lines
390 B
Java
17 lines
390 B
Java
// "Remove switch branch '"baz"'" "true"
|
|
class Main {
|
|
public void test() {
|
|
switch ("foo") {
|
|
case "qux":
|
|
case "bar":
|
|
class Foo {}
|
|
int i;
|
|
i = 2;
|
|
System.out.println("hello"+new Foo()+i);
|
|
//oops
|
|
default:
|
|
System.out.println("oops");
|
|
}
|
|
}
|
|
}
|