Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/deleteSwitchLabel/beforeUnwrapExpression2Java13Preview.java
Anna Kozlova 2e17e61cae remove language level 12 preview for 2019.3 release
IDEA would support latest preview only

GitOrigin-RevId: 6609e80acced9e1be07880c14de239f75afcc78b
2019-07-09 00:03:25 +03:00

22 lines
587 B
Java

// "Remove unreachable branches" "true"
class Main {
static void fff(int x) {
if (x == 5) {
System.out.println(switch (x) {
case 1 -> "one"; //1
case 2 -> "two"; //2
case 3 -> "three"; //3
case 4 -> "four"; //4
case 0, <caret>5, 10 -> "five-ten-fifteen"; //5
case 6 -> "six"; //6
case 7 -> "seven"; //7
default -> "and more"; //other
});
}
}
public static void main(String[] args) {
fff();
}
}