--- old/src/windows/classes/sun/awt/windows/WComponentPeer.java 2011-12-08 12:46:48.110156100 +0400 +++ new/src/windows/classes/sun/awt/windows/WComponentPeer.java 2011-12-08 12:46:47.596590900 +0400 @@ -222,7 +222,7 @@ updateWindow(); // make sure paint events are transferred to main event queue // for coalescing - WToolkit.getWToolkit().flushPendingEvents(); + SunToolkit.flushPendingEvents(); // paint the damaged area paintArea.paint(target, shouldClearRectBeforePaint()); } @@ -320,6 +320,7 @@ native void nativeHandleEvent(AWTEvent e); + @SuppressWarnings("fallthrough") public void handleEvent(AWTEvent e) { int id = e.getID(); @@ -549,6 +550,7 @@ // fallback default font object final static Font defaultFont = new Font(Font.DIALOG, Font.PLAIN, 12); + @SuppressWarnings("deprecation") public Graphics getGraphics() { if (isDisposed()) { return null; @@ -656,6 +658,7 @@ } // TODO: consider moving it to KeyboardFocusManagerPeerImpl + @SuppressWarnings("deprecation") public boolean requestFocus(Component lightweightChild, boolean temporary, boolean focusedWindowChangeAllowed, long time, CausedFocusEvent.Cause cause) @@ -1058,6 +1061,7 @@ // in the browser on Vista when DWM is enabled. // @return true if the toplevel container is not an EmbeddedFrame or // if this EmbeddedFrame is acceleration capable, false otherwise + @SuppressWarnings("deprecation") private static final boolean isContainingTopLevelAccelCapable(Component c) { while (c != null && !(c instanceof WEmbeddedFrame)) { c = c.getParent(); @@ -1072,6 +1076,7 @@ * Applies the shape to the native component window. * @since 1.7 */ + @SuppressWarnings("deprecation") public void applyShape(Region shape) { if (shapeLog.isLoggable(PlatformLogger.FINER)) { shapeLog.finer(