Author: xor
Date: 2009-04-06 06:33:09 +0000 (Mon, 06 Apr 2009)
New Revision: 26555
Modified:
trunk/freenet/src/freenet/support/DoublyLinkedList.java
trunk/freenet/src/freenet/support/DoublyLinkedListImpl.java
Log:
Resolve issue mentioned by sdiz in an email of 2008-10-30, sorry that it took
this long but at least its fixed now. The broken function was not being used
anywhere it seems.
Modified: trunk/freenet/src/freenet/support/DoublyLinkedList.java
===================================================================
--- trunk/freenet/src/freenet/support/DoublyLinkedList.java 2009-04-06
06:02:32 UTC (rev 26554)
+++ trunk/freenet/src/freenet/support/DoublyLinkedList.java 2009-04-06
06:33:09 UTC (rev 26555)
@@ -48,7 +48,7 @@
Enumeration<T> elements(); // for consistency w/ typical Java API
/**
- * Returns true if the passed item is contained in the list.
+ * Returns true if the list contains an item i where
<code>i.equals(item)</code> is true.
*/
public boolean contains(T item);
Modified: trunk/freenet/src/freenet/support/DoublyLinkedListImpl.java
===================================================================
--- trunk/freenet/src/freenet/support/DoublyLinkedListImpl.java 2009-04-06
06:02:32 UTC (rev 26554)
+++ trunk/freenet/src/freenet/support/DoublyLinkedListImpl.java 2009-04-06
06:33:09 UTC (rev 26555)
@@ -119,7 +119,7 @@
public boolean contains(T item) {
for(T i : this) {
- if(i == item)
+ if(i.equals(item))
return true;
}
return false;
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs