Author: j16sdiz
Date: 2008-08-18 13:26:41 +0000 (Mon, 18 Aug 2008)
New Revision: 22003
Modified:
trunk/freenet/src/freenet/support/TimeSortedHashtable.java
Log:
doh!
Modified: trunk/freenet/src/freenet/support/TimeSortedHashtable.java
===================================================================
--- trunk/freenet/src/freenet/support/TimeSortedHashtable.java 2008-08-18
13:21:28 UTC (rev 22002)
+++ trunk/freenet/src/freenet/support/TimeSortedHashtable.java 2008-08-18
13:26:41 UTC (rev 22003)
@@ -41,7 +41,8 @@
public int compare(Object arg0, Object arg1) {
if(arg0 instanceof Long && arg1 instanceof Long) return
((Long)arg0).compareTo((Long)arg1);
- if(arg0 instanceof Element && arg1 instanceof Element)
return ((Element)arg0).compareTo(arg1);
+ if (arg0 instanceof Element && arg1 instanceof Element)
+ return ((Element) arg0).compareTo((Element)
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) {