fix zero tolerance inspection (cast may be removed)

GitOrigin-RevId: 341e4225d4de6c7cafaec62888dde7612161167e
This commit is contained in:
Alexandr Suhinin
2019-07-30 20:05:38 +03:00
committed by intellij-monorepo-bot
parent 019edb2e14
commit 14541e62d8
@@ -37,9 +37,9 @@ public class ShowProcessWindowAction extends ToggleAction implements DumbAware {
public boolean isSelected(@NotNull AnActionEvent e) {
IdeFrameImpl frame = getFrame();
if (frame != null) {
StatusBar statusBar = frame.getStatusBar();
StatusBarEx statusBar = frame.getStatusBar();
if (statusBar != null) {
return ((StatusBarEx)statusBar).isProcessWindowOpen();
return statusBar.isProcessWindowOpen();
}
}
@@ -56,9 +56,9 @@ public class ShowProcessWindowAction extends ToggleAction implements DumbAware {
public void setSelected(@NotNull AnActionEvent e, boolean state) {
IdeFrameImpl frame = getFrame();
if (frame != null) {
StatusBar statusBar = frame.getStatusBar();
StatusBarEx statusBar = frame.getStatusBar();
if (statusBar != null) {
((StatusBarEx)statusBar).setProcessWindowOpen(state);
statusBar.setProcessWindowOpen(state);
}
}
}