--- a/jdk/src/java.desktop/share/classes/java/awt/DefaultKeyboardFocusManager.java Mon Dec 15 19:21:00 2014 +0300
+++ b/jdk/src/java.desktop/share/classes/java/awt/DefaultKeyboardFocusManager.java Mon Dec 15 17:20:17 2014 -0800
@@ -796,6 +796,7 @@
* @return <code>true</code>
* @see Component#dispatchEvent
*/
+ @SuppressWarnings("deprecation")
public boolean dispatchKeyEvent(KeyEvent e) {
Component focusOwner = (((AWTEvent)e).isPosted) ? getFocusOwner() : e.getComponent();
@@ -1021,6 +1022,7 @@
}
}
+ @SuppressWarnings("deprecation")
private boolean preDispatchKeyEvent(KeyEvent ke) {
if (((AWTEvent) ke).isPosted) {
Component focusOwner = getFocusOwner();