diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/java/awt/DefaultKeyboardFocusManager.java --- 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 true * @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();