mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
25 lines
573 B
Java
25 lines
573 B
Java
// "Remove unreachable branches" "true-preview"
|
|
class Main {
|
|
static void fff(int x) {
|
|
if (x == 5) {
|
|
System.out.println(switch (x) {
|
|
//1
|
|
//2
|
|
//3
|
|
//4
|
|
case 5 -> {
|
|
System.out.println("something");
|
|
break "five-ten-fifteen"; //5
|
|
}
|
|
//6
|
|
//7
|
|
default -> "and more"; //other
|
|
});
|
|
}
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
fff();
|
|
}
|
|
}
|