summaryrefslogtreecommitdiff
path: root/java/sql
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2005-09-27 16:59:20 +0000
committerTom Tromey <tromey@redhat.com>2005-09-27 16:59:20 +0000
commit4c830134f9c7d95f43b646f238c543985c9c2d5b (patch)
tree8815e72ba1e9b78ff70b5f71bb929c1ca57ee30f /java/sql
parentc71ee9f53b63851e6ee87f5adb1c611c4eb22ac3 (diff)
downloadclasspath-4c830134f9c7d95f43b646f238c543985c9c2d5b.tar.gz
* java/sql/Timestamp.java (compareTo(Date)): Changed argument type
from Object. * javax/naming/Name.java (Name): Implements Comparable<Object>. * java/util/Date.java (Date): Implements Comparable<Date>. (compareTo(Object)): Removed. * java/text/CollationKey.java (CollationKey): Implements Comparable<CollationKey>. (compareTo(Object)): Removed. * java/net/URI.java (URI): Implements Comparable<URI>. (compareTo): Updated argument type. * java/math/BigDecimal.java (BigInteger): Implements Comparable<BigDecimal>. (compareTo(Object)): Removed. * java/math/BigInteger.java (BigInteger): Implements Comparable<BigInteger>. (compareTo(Object)): Removed. * java/io/File.java (File): Implements Comparable<File>. (compareTo(Object)): Removed.
Diffstat (limited to 'java/sql')
-rw-r--r--java/sql/Timestamp.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/sql/Timestamp.java b/java/sql/Timestamp.java
index f3459b22f..66f8259f2 100644
--- a/java/sql/Timestamp.java
+++ b/java/sql/Timestamp.java
@@ -1,5 +1,5 @@
/* Time.java -- Wrapper around java.util.Date
- Copyright (C) 1999, 2000, 2003, 2004 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -308,7 +308,7 @@ public class Timestamp extends java.util.Date
* @exception ClassCastException if obj is not of type Timestamp.
* @since 1.2
*/
- public int compareTo(Object obj)
+ public int compareTo(java.util.Date obj)
{
return compareTo((Timestamp) obj);
}