r26587 - trunk/freenet/src/freenet/support

[email protected]
Newsgroups gmane.network.freenet.cvs
Message-ID <[email protected]>
Author: j16sdiz
Date: 2009-04-07 04:45:29 +0000 (Tue, 07 Apr 2009)
New Revision: 26587

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

Modified: trunk/freenet/src/freenet/support/TimeSortedHashtable.java
===================================================================
--- trunk/freenet/src/freenet/support/TimeSortedHashtable.java	2009-04-07 04:45:09 UTC (rev 26586)
+++ trunk/freenet/src/freenet/support/TimeSortedHashtable.java	2009-04-07 04:45:29 UTC (rev 26587)
@@ -166,6 +166,7 @@
     /**
      * @return The set of values after the given time.
      */
+	// FIXME this is broken if timestamp != -1
     public final synchronized <E extends Comparable> E[] valuesAfter(long t, E[] values) {
     	Set<Comparable> s = elements.tailSet(t, false);
     	
@@ -199,6 +200,7 @@
     	assert(elements.size() == valueToElement.size());
 	}
 
+	// FIXME this is broken if timestamp != -1
 	public final synchronized <E extends Comparable> Object[] pairsAfter(long timestamp, E[] valuesArray) {
 		return new Object[] { valuesAfter(timestamp, valuesArray), timesAfter(timestamp) };
 	}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.