Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/deleteSwitchLabel/beforeDuplicateNullLabel2.java
Andrey Cherkasov 468b4d470a [java] DeleteSwitchLabelFix must produce 'default:' instead of 'case default:'
IDEA-309550

GitOrigin-RevId: 3224934e68d9b0f9008fe7305f0209d3487a7f65
2023-01-04 12:39:33 +00:00

10 lines
231 B
Java

// "Remove switch label 'null'" "true-preview"
class X {
void test(String s) {
switch (s) {
case null -> System.out.println("null");
case null<caret>, default -> System.out.println("null or default");
}
}
}