--- 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;