Commit 75160ca7 by Michael Koch Committed by Michael Koch

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
parent 7ff7feaa
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.
......
......@@ -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);
}
}
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment