mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup: remove redundant casts
They became redundant after deprecated overloads were removed. GitOrigin-RevId: 6283a1a7a09df275a7fcc7e24a2b172f8415fd7f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
187bfe5e05
commit
9d2283f2cf
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user