mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 02:38:59 +07:00
[java-intentions] ConvertSwitchToIf: fix the intention according a switch throws NPE if the selector expression is null
IDEA-300120 GitOrigin-RevId: 5d77f98e7931e32a06cb3c54076978d317f78a98
This commit is contained in:
committed by
intellij-monorepo-bot
parent
cd9e96567a
commit
108dc80b56
@@ -4,8 +4,8 @@ abstract class Test {
|
||||
|
||||
void foo() {
|
||||
Class<?> aClass = getObject().getClass();
|
||||
if (RuntimeException.class.equals(aClass)) {
|
||||
} else if (IOException.class.equals(aClass)) {
|
||||
if (aClass.equals(RuntimeException.class)) {
|
||||
} else if (aClass.equals(IOException.class)) {
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user