This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[4.0] Patch: FYI: @deprecated fixes
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 23 Jan 2006 15:07:35 -0700
- Subject: [4.0] Patch: FYI: @deprecated fixes
- Reply-to: tromey at redhat dot com
I'm checking this in on the 4.0 branch.
This fixes a couple @deprecated buglets pointed out on the main list.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* java/sql/Date.java (toString): Not deprecated.
(valueOf): Likewise.
* java/sql/Time.java (valueOf): Not deprecated.
(toString): Likewise.
Index: java/sql/Date.java
===================================================================
--- java/sql/Date.java (revision 110143)
+++ java/sql/Date.java (working copy)
@@ -1,5 +1,5 @@
/* Date.java -- Wrapper around java.util.Date
- Copyright (C) 1999, 2000, 2003 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2000, 2003, 2006 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -154,8 +154,6 @@
*
* @param str The string to parse.
* @return The resulting <code>java.sql.Date</code> value.
- *
- * @deprecated
*/
public static Date valueOf (String str)
{
@@ -178,8 +176,6 @@
* This method returns this date in JDBC format.
*
* @return This date as a string.
- *
- * @deprecated
*/
public String toString()
{
Index: java/sql/Time.java
===================================================================
--- java/sql/Time.java (revision 110143)
+++ java/sql/Time.java (working copy)
@@ -1,5 +1,5 @@
/* Time.java -- Wrapper around java.util.Date
- Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2000, 2002, 2003, 2006 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -139,8 +139,6 @@
*
* @param str The string to parse.
* @return The resulting <code>java.sql.Time</code> value.
- *
- * @deprecated
*/
public static Time valueOf (String str)
{
@@ -193,8 +191,6 @@
* This method returns this date in JDBC format.
*
* @return This date as a string.
- *
- * @deprecated
*/
public String toString ()
{