Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/moveSwitchBranchUp/afterLabeledRule.java
T
2021-10-05 22:24:08 +00:00

11 lines
240 B
Java

// "Move switch branch 'Integer i' before 'Number n'" "true"
class Main {
void test(Object o) {
int x = switch (o) {
case Integer i -> 1;
case Number n -> 2;
case String s -> 3;
default -> 4;
};
}
}