jdk/src/java.desktop/share/classes/javax/swing/text/PlainView.java
changeset 42216 621af0ebf6c4
parent 41807 f9eb6cb54fed
child 43075 668b6d00cc79
--- a/jdk/src/java.desktop/share/classes/javax/swing/text/PlainView.java	Mon Nov 14 09:03:07 2016 -0800
+++ b/jdk/src/java.desktop/share/classes/javax/swing/text/PlainView.java	Mon Nov 14 09:59:36 2016 -0800
@@ -471,6 +471,7 @@
      *   represent a valid location in the associated document
      * @see View#modelToView
      */
+    @SuppressWarnings("deprecation")
     public Shape modelToView(int pos, Shape a, Position.Bias b) throws BadLocationException {
         // line coordinates
         Document doc = getDocument();
@@ -798,6 +799,7 @@
      * the given element.  It is assumed that the font
      * and font metrics are up-to-date.
      */
+    @SuppressWarnings("deprecation")
     private int getLineWidth(Element line) {
         if (line == null) {
             return 0;