mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 02:38:59 +07:00
generate "constant".equals(variable) code when converting switch to if (IDEA-157516)
This commit is contained in:
@@ -4,8 +4,8 @@ abstract class Test {
|
||||
|
||||
void foo() {
|
||||
Class<?> i = getObject().getClass();
|
||||
if (i.equals(RuntimeException.class)) {
|
||||
} else if (i.equals(IOException.class)) {
|
||||
if (RuntimeException.class.equals(i)) {
|
||||
} else if (IOException.class.equals(i)) {
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user