diff -r 4efb5b19587b -r 621af0ebf6c4 jdk/src/java.desktop/share/classes/sun/swing/text/TextComponentPrintable.java --- a/jdk/src/java.desktop/share/classes/sun/swing/text/TextComponentPrintable.java Mon Nov 14 09:03:07 2016 -0800 +++ b/jdk/src/java.desktop/share/classes/sun/swing/text/TextComponentPrintable.java Mon Nov 14 09:59:36 2016 -0800 @@ -753,6 +753,7 @@ * First step is to find yStart and yEnd for the every document position. * Second step is to merge all intersected segments ( [yStart, yEnd] ). */ + @SuppressWarnings("deprecation") private void calculateRowsMetrics() { final int documentLength = printShell.getDocument().getLength(); List documentMetrics = new ArrayList(LIST_SIZE);