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