--- old/src/java.desktop/share/classes/javax/swing/text/StyleContext.java 2014-12-09 10:07:15.293095977 -0800 +++ new/src/java.desktop/share/classes/javax/swing/text/StyleContext.java 2014-12-09 10:07:15.085095967 -0800 @@ -279,6 +279,7 @@ * @param f the font * @return the metrics */ + @SuppressWarnings("deprecation") public FontMetrics getFontMetrics(Font f) { // The Toolkit implementations cache, so we just forward // to the default toolkit.