--- old/src/java.desktop/share/classes/sun/print/RasterPrinterJob.java 2014-12-09 10:07:25.193096415 -0800 +++ new/src/java.desktop/share/classes/sun/print/RasterPrinterJob.java 2014-12-09 10:07:25.021096407 -0800 @@ -745,6 +745,7 @@ * return a PageFormat corresponding to the updated attributes, * or null if the user cancelled the dialog. */ + @SuppressWarnings("deprecation") public PageFormat pageDialog(final PrintRequestAttributeSet attributes) throws HeadlessException { if (GraphicsEnvironment.isHeadless()) {