diff --git a/platform/platform-api/src/com/intellij/ui/InplaceButton.java b/platform/platform-api/src/com/intellij/ui/InplaceButton.java index 2f122162bc46..b8ef78ee7684 100644 --- a/platform/platform-api/src/com/intellij/ui/InplaceButton.java +++ b/platform/platform-api/src/com/intellij/ui/InplaceButton.java @@ -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)null, TimedDeadzone.DEFAULT); + this(new IconButton(tooltip, icon, icon), listener, null, TimedDeadzone.DEFAULT); } public InplaceButton(IconButton source, ActionListener listener) { - this(source, listener, (Consumer)null, TimedDeadzone.DEFAULT); + this(source, listener, null, TimedDeadzone.DEFAULT); } public InplaceButton(IconButton source, ActionListener listener, Consumer consumer, TimedDeadzone.Length mouseDeadzone) { diff --git a/platform/platform-impl/src/com/intellij/ui/BalloonImpl.java b/platform/platform-impl/src/com/intellij/ui/BalloonImpl.java index a44044f4bcbe..e9641a5b868a 100644 --- a/platform/platform-impl/src/com/intellij/ui/BalloonImpl.java +++ b/platform/platform-impl/src/com/intellij/ui/BalloonImpl.java @@ -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); diff --git a/platform/platform-impl/src/com/intellij/ui/popup/AbstractPopup.java b/platform/platform-impl/src/com/intellij/ui/popup/AbstractPopup.java index 71df1c23c1ac..151e6e5c5e45 100644 --- a/platform/platform-impl/src/com/intellij/ui/popup/AbstractPopup.java +++ b/platform/platform-impl/src/com/intellij/ui/popup/AbstractPopup.java @@ -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)); }