src/share/classes/java/sql/Date.java

Print this page

        

@@ -148,10 +148,11 @@
     /**
      * Formats a date in the date escape format yyyy-mm-dd.
      * <P>
      * @return a String in yyyy-mm-dd format
      */
+    @SuppressWarnings("deprecation")
     public String toString () {
         int year = super.getYear() + 1900;
         int month = super.getMonth() + 1;
         int day = super.getDate();