--- old/src/java.desktop/share/classes/javax/swing/JViewport.java 2014-12-09 10:07:04.133095483 -0800 +++ new/src/java.desktop/share/classes/javax/swing/JViewport.java 2014-12-09 10:07:03.981095476 -0800 @@ -829,6 +829,7 @@ * * @see JComponent#reshape(int, int, int, int) */ + @SuppressWarnings("deprecation") public void reshape(int x, int y, int w, int h) { boolean sizeChanged = (getWidth() != w) || (getHeight() != h); if (sizeChanged) { @@ -1447,6 +1448,7 @@ * Returns true if the component needs to be completely repainted after * a blit and a paint is received. */ + @SuppressWarnings("deprecation") private boolean needsRepaintAfterBlit() { // Find the first heavy weight ancestor. isObscured and // canDetermineObscurity are only appropriate for heavy weights.