mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-02 14:20:55 +07:00
11 lines
258 B
Java
11 lines
258 B
Java
// "Replace 'switch' with 'if'" "true"
|
|
abstract class Test {
|
|
abstract Object getObject();
|
|
|
|
void foo() {
|
|
Class<?> i = getObject().getClass();
|
|
if (i.equals(RuntimeException.class)) {
|
|
} else if (i.equals(IOException.class)) {
|
|
}
|
|
}
|
|
} |