Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/convertSwitchToIf/afterNotCompletesNormally.java

14 lines
251 B
Java

// "Replace 'switch' with 'if'" "true"
class X {
void m(String s, int a) throws IOException {
if ("a".equals(s)) {
a();
} else {
d();
}
}
void a() throws IOException { }
void d() throws IOException { }
}