cleanup: remove redundant casts

They became redundant after deprecated overloads were removed.

GitOrigin-RevId: 6283a1a7a09df275a7fcc7e24a2b172f8415fd7f
This commit is contained in:
Nikolay Chashnikov
2021-01-19 11:00:37 +00:00
committed by intellij-monorepo-bot
parent 187bfe5e05
commit 9d2283f2cf
3 changed files with 4 additions and 4 deletions
@@ -39,11 +39,11 @@ public class InplaceButton extends JComponent implements ActiveComponent, Access
private boolean myHoveringEnabled;
public InplaceButton(@Tooltip String tooltip, Icon icon, ActionListener listener) {
this(new IconButton(tooltip, icon, icon), listener, (Consumer<? super MouseEvent>)null, TimedDeadzone.DEFAULT);
this(new IconButton(tooltip, icon, icon), listener, null, TimedDeadzone.DEFAULT);
}
public InplaceButton(IconButton source, ActionListener listener) {
this(source, listener, (Consumer<? super MouseEvent>)null, TimedDeadzone.DEFAULT);
this(source, listener, null, TimedDeadzone.DEFAULT);
}
public InplaceButton(IconButton source, ActionListener listener, Consumer<? super MouseEvent> consumer, TimedDeadzone.Length mouseDeadzone) {
@@ -613,7 +613,7 @@ public final class BalloonImpl implements Balloon, IdeTooltip.Ui, ScreenAreaCons
// Set the accessible parent so that screen readers don't announce
// a window context change -- the tooltip is "logically" hosted
// inside the component (e.g. editor) it appears on top of.
AccessibleContextUtil.setParent((Component)myContent, myOriginalFocusOwner);
AccessibleContextUtil.setParent(myContent, myOriginalFocusOwner);
// Set the focus to "myContent"
myFocusManager.requestFocus(getContentToFocus(), true);
@@ -554,7 +554,7 @@ public class AbstractPopup implements JBPopup, ScreenAreaConsumer {
// Set the accessible parent so that screen readers don't announce
// a window context change -- the tooltip is "logically" hosted
// inside the component (e.g. editor) it appears on top of.
AccessibleContextUtil.setParent((Component)myComponent, editor.getContentComponent());
AccessibleContextUtil.setParent(myComponent, editor.getContentComponent());
show(getBestPositionFor(editor));
}