Author: j16sdiz
Date: 2009-02-13 14:01:28 +0000 (Fri, 13 Feb 2009)
New Revision: 25609
Modified:
trunk/freenet/src/freenet/support/LRUQueue.java
Log:
fix unit test
Modified: trunk/freenet/src/freenet/support/LRUQueue.java
===================================================================
--- trunk/freenet/src/freenet/support/LRUQueue.java 2009-02-13 13:55:45 UTC
(rev 25608)
+++ trunk/freenet/src/freenet/support/LRUQueue.java 2009-02-13 14:01:28 UTC
(rev 25609)
@@ -73,6 +73,9 @@
}
public final synchronized boolean remove(Object obj) {
+ if (obj == null)
+ throw new NullPointerException();
+
QItem<T> i = hash.remove(obj);
if(i != null) {
list.remove(i);
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs