EA-76495 (IOE: PsiJavaParserFacadeImpl.createStatementFromText)

This commit is contained in:
Bas Leijdekkers
2015-11-30 16:58:06 +01:00
parent f57ea0cad6
commit 9d49239ff4
3 changed files with 24 additions and 6 deletions

View File

@@ -0,0 +1,9 @@
// "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)) {
}
}
}