Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/convertSwitchToIf/beforeCommentsWithDefault.java
2018-10-23 15:34:51 +07:00

16 lines
278 B
Java

// "Replace 'switch' with 'if'" "true"
class Foo {
Object foo(int x) {
sw<caret>itch (x) {
case 1: // not needed
return null;
case 2:// not needed
return null;
case 4:
return "foo";
default:
return null;
}
}
}