On Wednesday 29 October 2008 19:38, xor at freenetproject.org wrote:
> Author: xor
> Date: 2008-10-29 19:38:11 +0000 (Wed, 29 Oct 2008)
> New Revision: 23182
> 
> Modified:
>    trunk/freenet/src/freenet/support/UpdatableSortedLinkedListItemImpl.java
> Log:
> Implement getParent() / setParent() so that child classes don't have to do 
that. Those functions were debug code anyway, maybe they should be removed.

Why does a child class need to setParent() ?
> 
> Modified: 
trunk/freenet/src/freenet/support/UpdatableSortedLinkedListItemImpl.java
> ===================================================================
> --- trunk/freenet/src/freenet/support/UpdatableSortedLinkedListItemImpl.java  
2008-10-29 19:37:09 UTC (rev 23181)
> +++ trunk/freenet/src/freenet/support/UpdatableSortedLinkedListItemImpl.java  
2008-10-29 19:38:11 UTC (rev 23182)
> @@ -29,4 +29,20 @@
>          prev = i;
>          return old;
>      }
> +    
> +    /*
> +     * FIXME: DoublyLinkedList says that this is only for debugging 
purposes.
> +     * Maybe it should be removed completely?
> +     */
> +    
> +    private DoublyLinkedList parentList;
> +
> +     public DoublyLinkedList getParent() {
> +             return parentList;
> +     }
> +
> +     public DoublyLinkedList setParent(DoublyLinkedList l) {
> +             return parentList;
> +     }
> +    
>  }
> 
> _______________________________________________
> cvs mailing list
> cvs at freenetproject.org
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20081030/f5538b8d/attachment.pgp>

Reply via email to