mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 10:48:09 +07:00
9 lines
215 B
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)) {
|
|
}
|
|
}
|
|
} |