This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FYI: Patch: java.sql - @deprecated and reformatting


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi list,


I commited the attached patch to trunk to make 4 methods deprecated 
and reformat some code in java.sql.


Michael
- -- 
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+iDGjWSOgCCdjSDsRAtAQAJ9ISpUgtBINSk2qMDg/dH5uXuRxwwCfSpYZ
riXAlC98FlvAQQz0wqFLNW8=
=cEsE
-----END PGP SIGNATURE-----
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.1836
diff -u -r1.1836 ChangeLog
--- ChangeLog	31 Mar 2003 11:23:08 -0000	1.1836
+++ ChangeLog	31 Mar 2003 12:13:27 -0000
@@ -1,5 +1,14 @@
 2003-03-31  Michael Koch  <konqueror at gmx dot de>
 
+	* java/sql/Date.java
+	(valueOf): Deprecated, reformatted.
+	(toString): Deprecated, reformatted.
+	* java/sql/Time.java
+	(valueOf): Deprecated, reformatted.
+	(toString): Deprecated, reformatted.
+
+2003-03-31  Michael Koch  <konqueror at gmx dot de>
+
 	* java/rmi/dgc/VMID.java
 	(isUnique): Deprecated.
 
Index: java/sql/Date.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/sql/Date.java,v
retrieving revision 1.4
diff -u -r1.4 Date.java
--- java/sql/Date.java	21 Jun 2002 05:39:23 -0000	1.4
+++ java/sql/Date.java	31 Mar 2003 12:13:27 -0000
@@ -86,9 +86,11 @@
    * date in JDBC format into a Java date.
    *
    * @param str The string to parse.
-   * @return The resulting <code>java.sql.Date</code> value. 
+   * @return The resulting <code>java.sql.Date</code> value.
+   *
+   * @deprecated
    */
-  public static Date valueOf(String str)
+  public static Date valueOf (String str)
   {
     try
       {
@@ -105,9 +107,11 @@
    * This method returns this date in JDBC format.
    *
    * @return This date as a string.
+   *
+   * @deprecated
    */
   public String toString()
   {
-    return(sdf.format(this));
+    return sdf.format(this);
   }
 }
Index: java/sql/Time.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/sql/Time.java,v
retrieving revision 1.4
diff -u -r1.4 Time.java
--- java/sql/Time.java	21 Jun 2002 05:39:24 -0000	1.4
+++ java/sql/Time.java	31 Mar 2003 12:13:27 -0000
@@ -61,9 +61,11 @@
    * date in JDBC format into a Java date.
    *
    * @param str The string to parse.
-   * @return The resulting <code>java.sql.Time</code> value. 
+   * @return The resulting <code>java.sql.Time</code> value.
+   *
+   * @deprecated
    */
-  public static Time valueOf(String str)
+  public static Time valueOf (String str)
   {
     try
       {
@@ -110,11 +112,12 @@
    * This method returns this date in JDBC format.
    *
    * @return This date as a string.
+   *
+   * @deprecated
    */
-  public String
-  toString()
+  public String toString ()
   {
-    return sdf.format(this);
+    return sdf.format (this);
   }
 
 }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]