Author: toad
Date: 2007-03-11 00:06:41 +0000 (Sun, 11 Mar 2007)
New Revision: 12096

Modified:
   trunk/freenet/src/freenet/support/TimeSortedHashtable.java
Log:
comments

Modified: trunk/freenet/src/freenet/support/TimeSortedHashtable.java
===================================================================
--- trunk/freenet/src/freenet/support/TimeSortedHashtable.java  2007-03-10 
23:46:09 UTC (rev 12095)
+++ trunk/freenet/src/freenet/support/TimeSortedHashtable.java  2007-03-11 
00:06:41 UTC (rev 12096)
@@ -34,6 +34,8 @@
                public int compare(Object arg0, Object arg1) {
                        if(arg0 instanceof Long && arg1 instanceof Long) return 
((Long)arg0).compareTo(arg1);
                        if(arg0 instanceof Element && arg1 instanceof Element) 
return ((Element)arg0).compareTo(arg1);
+                       // Comparing a Long with an Element, because we are 
searching for an Element by the value of a Long.
+                       // Hence we do not need to consider the element value.
                        if(arg0 instanceof Long) {
                                long l = ((Long)arg0).longValue();
                                Element e = (Element)arg1;


Reply via email to