--- old/src/java.desktop/share/classes/com/sun/java/swing/plaf/motif/MotifGraphicsUtils.java 2016-12-19 22:11:47.000000000 +0300 +++ new/src/java.desktop/share/classes/com/sun/java/swing/plaf/motif/MotifGraphicsUtils.java 2016-12-19 22:11:47.000000000 +0300 @@ -139,10 +139,11 @@ } /** - * This method is not being used to paint menu item since + * @deprecated This method is not being used to paint menu item since * 6.0 This code left for compatibility only. Do not use or * override it, this will not cause any visible effect. */ + @Deprecated(since = "9") public static void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground,