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.

From-SVN: r65086
This commit is contained in:
Michael Koch 2003-03-31 12:14:53 +00:00 committed by Michael Koch
parent 7ff7feaadf
commit 75160ca76c
3 changed files with 24 additions and 8 deletions

View File

@ -1,3 +1,12 @@
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

View File

@ -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);
}
}

View File

@ -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);
}
}