Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/deleteSwitchLabel/beforeDeleteCase.java
Tagir Valeev dd689d3a39 [java-inspections] More tests for preview
GitOrigin-RevId: 6b6405ee4491ad1d58947547c40df6fb2d291ab7
2022-07-29 17:54:59 +00:00

20 lines
506 B
Java

// "Remove switch label '"qux"'" "true-preview"
class Main {
public void test() {
switch ("foo") {
case "baz":
int i = 1;
class Foo {}
System.out.println(i);
break;
case "<caret>qux" /*comment*/:
case "bar":
i = 2;
System.out.println("hello"+new Foo()+i);
//oops
default:
System.out.println("oops");
}
}
}