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

9 lines
215 B
Java

// "Replace 'switch' with 'if'" "true"
class Test {
void foo(Object e) {
Class<?> i = e.getClass();
if (i.equals(RuntimeException.class)) {
} else if (i.equals(IOException.class)) {
}
}
}