Merged gcj-eclipse branch to trunk.

From-SVN: r120621
This commit is contained in:
Tom Tromey 2007-01-09 19:58:05 +00:00
parent c648dedbde
commit 97b8365caf
17478 changed files with 606493 additions and 100744 deletions

View file

@ -108,7 +108,7 @@ import java.text.SimpleDateFormat;
* @author Andrew John Hughes (gnu_andrew@member.fsf.org)
*/
public class Date
implements Cloneable, Comparable, Serializable
implements Cloneable, Comparable<Date>, Serializable
{
/**
* This is the serialization UID for this class
@ -353,24 +353,6 @@ public class Date
return (time < when.time) ? -1 : (time == when.time) ? 0 : 1;
}
/**
* Compares this Date to another object. This behaves like
* <code>compareTo(Date)</code>, but it takes a generic object
* and throws a <code>ClassCastException</code> if obj is
* not a <code>Date</code>.
*
* @param obj the other date.
* @return 0, if the date represented
* by obj is exactly the same as the time represented by this
* object, a negative if this Date is before the other Date, and
* a positive value otherwise.
* @exception ClassCastException if obj is not of type Date.
*/
public int compareTo(Object obj)
{
return compareTo((Date) obj);
}
/**
* Computes the hash code of this <code>Date</code> as the
* XOR of the most significant and the least significant