diff options
author | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-31 12:14:53 +0000 |
---|---|---|
committer | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-31 12:14:53 +0000 |
commit | 1154aad827b80a3eb29b0355801b7e962236c70d (patch) | |
tree | 57139158af3a41ba1b2db0b8a9491bebdda1d633 /libjava | |
parent | 134578eb2b915c8ea8f76526cbf08fd2be30e2e4 (diff) | |
download | gcc-1154aad827b80a3eb29b0355801b7e962236c70d.tar.gz |
2003-03-31 Michael Koch <konqueror@gmx.de>
* java/sql/Date.java
(valueOf): Deprecated, reformatted.
(toString): Deprecated, reformatted.
* java/sql/Time.java
(valueOf): Deprecated, reformatted.
(toString): Deprecated, reformatted.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65086 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava')
-rw-r--r-- | libjava/ChangeLog | 9 | ||||
-rw-r--r-- | libjava/java/sql/Date.java | 10 | ||||
-rw-r--r-- | libjava/java/sql/Time.java | 13 |
3 files changed, 24 insertions, 8 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index bc96db1b78c..0697e535f4d 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,5 +1,14 @@ 2003-03-31 Michael Koch <konqueror@gmx.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@gmx.de> + * java/rmi/dgc/VMID.java (isUnique): Deprecated. diff --git a/libjava/java/sql/Date.java b/libjava/java/sql/Date.java index 59c8f1a3fc3..360376c2518 100644 --- a/libjava/java/sql/Date.java +++ b/libjava/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); } } diff --git a/libjava/java/sql/Time.java b/libjava/java/sql/Time.java index 81f5d8cbf7b..7d515c25c3b 100644 --- a/libjava/java/sql/Time.java +++ b/libjava/java/sql/Time.java @@ -61,9 +61,11 @@ public class Time extends java.util.Date * 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 @@ public class Time extends java.util.Date * 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); } } |