--- 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<IntegerSegment> documentMetrics = new ArrayList<IntegerSegment>(LIST_SIZE);