--- old/src/java.desktop/share/classes/sun/print/RasterPrinterJob.java 2017-03-30 19:02:40.000000000 +0300 +++ new/src/java.desktop/share/classes/sun/print/RasterPrinterJob.java 2017-03-30 19:02:40.000000000 +0300 @@ -886,14 +886,6 @@ } } - protected PageFormat getPageFormatFromAttributes() { - if (attributes == null || attributes.isEmpty()) { - return null; - } - return attributeToPageFormat(getPrintService(), this.attributes); - } - - /** * Presents the user a dialog for changing properties of the * print job interactively.