mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-03 07: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 (RuntimeException.class.equals(i)) {
|
|
} else if (IOException.class.equals(i)) {
|
|
}
|
|
}
|
|
} |