commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r922845 - /commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ntp/TimeStamp.java
Date Sun, 14 Mar 2010 13:51:50 GMT
Author: sebb
Date: Sun Mar 14 13:51:49 2010
New Revision: 922845

URL: http://svn.apache.org/viewvc?rev=922845&view=rev
Log:
Raw type fix

Modified:
    commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ntp/TimeStamp.java

Modified: commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ntp/TimeStamp.java
URL: http://svn.apache.org/viewvc/commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ntp/TimeStamp.java?rev=922845&r1=922844&r2=922845&view=diff
==============================================================================
--- commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ntp/TimeStamp.java
(original)
+++ commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ntp/TimeStamp.java
Sun Mar 14 13:51:49 2010
@@ -43,7 +43,7 @@ import java.util.TimeZone;
  * @version $Revision$ $Date$
  * @see java.util.Date
  */
-public class TimeStamp implements java.io.Serializable, Comparable // TODO add comparable
type?
+public class TimeStamp implements java.io.Serializable, Comparable<TimeStamp>
 {
 
     /**
@@ -465,26 +465,4 @@ public class TimeStamp implements java.i
         return (thisVal < anotherVal ? -1 : (thisVal == anotherVal ? 0 : 1));
     }
 
-    /***
-     * Compares this TimeStamp to another Object.  If the Object is a TimeStamp,
-     * this function behaves like <code>compareTo(TimeStamp)</code>.  Otherwise,
-     * it throws a <code>ClassCastException</code> (as TimeStamps are comparable
-     * only to other TimeStamps).
-     *
-     * @param   o the <code>Object</code> to be compared.
-     * @return  the value <code>0</code> if the argument is a TimeStamp
-     *      numerically equal to this TimeStamp; a value less than
-     *      <code>0</code> if the argument is a TimeStamp numerically
-     *      greater than this TimeStamp; and a value greater than
-     *      <code>0</code> if the argument is a TimeStamp numerically
-     *      less than this TimeStamp.
-     * @exception ClassCastException if the argument is not a
-     *        <code>TimeStamp</code>.
-     * @see     java.lang.Comparable
-     */
-    public int compareTo(Object o)
-    {
-        return compareTo((TimeStamp) o);
-    }
-
 }



Mime
View raw message