diff options
author | Michael Koch <konqueror@gmx.de> | 2003-04-06 09:17:54 +0000 |
---|---|---|
committer | Michael Koch <konqueror@gmx.de> | 2003-04-06 09:17:54 +0000 |
commit | 737b603e38127bba08d5e4cb8e1fef94d6025d27 (patch) | |
tree | 252f4ebfa8ed4ba5cb084d402ead3f6a0812c5d3 /java/sql/Date.java | |
parent | a1302a38379058664bab2ac0bfc8f60b7a5ba496 (diff) | |
download | classpath-737b603e38127bba08d5e4cb8e1fef94d6025d27.tar.gz |
2003-04-06 Michael Koch <konqueror@gmx.de>
* java/sql/Date.java,
java/sql/Time.java:
Merged latest version from libgcj.
Diffstat (limited to 'java/sql/Date.java')
-rw-r--r-- | java/sql/Date.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/java/sql/Date.java b/java/sql/Date.java index 59c8f1a3f..360376c25 100644 --- a/java/sql/Date.java +++ b/java/sql/Date.java @@ -86,9 +86,11 @@ public class Date extends java.util.Date * 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 @@ public class Date extends java.util.Date * 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); } } |