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

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