--- old/src/java.desktop/share/classes/javax/swing/RepaintManager.java 2016-11-17 20:02:15.000000000 +0300 +++ new/src/java.desktop/share/classes/javax/swing/RepaintManager.java 2016-11-17 20:02:15.000000000 +0300 @@ -521,8 +521,12 @@ * @param h Height of the region to repaint * @see JApplet#repaint * @since 1.6 + * + * @deprecated The Applet API is deprecated. See the + * java.applet package + * documentation for further information. */ - @SuppressWarnings("deprecation") + @Deprecated(since = "9") public void addDirtyRegion(Applet applet, int x, int y, int w, int h) { addDirtyRegion0(applet, x, y, w, h); }