mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
20 lines
490 B
Java
20 lines
490 B
Java
// "Remove switch label '"bar"'" "true-preview"
|
|
class Main {
|
|
public void test() {
|
|
switch ("foo") {
|
|
case "baz":
|
|
int i = 1;
|
|
class Foo {}
|
|
System.out.println(i);
|
|
break;
|
|
case "qux":
|
|
// comment
|
|
i = 2;
|
|
System.out.println("hello"+new Foo()+i);
|
|
//oops
|
|
default:
|
|
System.out.println("oops");
|
|
}
|
|
}
|
|
}
|