On Wednesday 29 October 2008 19:38, [EMAIL PROTECTED] 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
> [EMAIL PROTECTED]
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs
>
>
pgpeWZA5oVx0c.pgp
Description: PGP signature
_______________________________________________ Devl mailing list [email protected] http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
