< prev index next >

src/java.desktop/share/classes/javax/swing/text/html/FormView.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -597,10 +597,11 @@
      *      "x="+ x +"&y="+ y
      *
      * @param point associated with the mouse click.
      * @return the image data.
      */
+    @SuppressWarnings("deprecation")
     private String getImageData(Point point) {
 
         String mouseCoords = point.x + ":" + point.y;
         int sep = mouseCoords.indexOf(':');
         String x = mouseCoords.substring(0, sep);

@@ -814,10 +815,11 @@
      * Appends name / value pairs into the
      * buffer.  Both names and values are encoded using the
      * URLEncoder.encode() method before being added to the
      * buffer.
      */
+    @SuppressWarnings("deprecation")
     private void appendBuffer(StringBuilder buffer, String name, String value) {
         if (buffer.length() > 0) {
             buffer.append('&');
         }
         String encodedName = URLEncoder.encode(name);
< prev index next >