Author: j16sdiz
Date: 2008-09-07 10:57:51 +0000 (Sun, 07 Sep 2008)
New Revision: 22513
Modified:
trunk/freenet/src/freenet/support/DoublyLinkedListImpl.java
Log:
fix unshift(int) test case
Modified: trunk/freenet/src/freenet/support/DoublyLinkedListImpl.java
===================================================================
--- trunk/freenet/src/freenet/support/DoublyLinkedListImpl.java 2008-09-07
10:57:32 UTC (rev 22512)
+++ trunk/freenet/src/freenet/support/DoublyLinkedListImpl.java 2008-09-07
10:57:51 UTC (rev 22513)
@@ -36,6 +36,13 @@
_tailptr = _t;
_headptr.setParent(this);
_tailptr.setParent(this);
+
+ DoublyLinkedList.Item i = _headptr;
+ while (i != null ) {
+ i.setParent(this);
+ i = i.getNext();
+ }
+
this.size = size;
}