Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/replaceCaseDefaultWithDefault/beforeCaseDefaultWithLabels.java
Mikhail Pyltsin 3d7a18e986 [java-highlighting] IDEA-315469 Quickfixes for switch labels with 'default'
- fix to reverse 'case default, null'
- fix to replace 'case default' with 'default'

GitOrigin-RevId: 3762a40c859bb7a13a638614b3200b0005d8e85a
2023-11-01 10:23:57 +00:00

11 lines
272 B
Java

// "Replace 'case default' with 'default'" "true-preview"
class Test {
void f() {
Object o = null;
switch (o) {
case String s:
System.out.println("2");
case /*some text*/ def<caret>ault:
System.out.println("3") /*some text2*/;
}
}