On Monday 06 April 2009 07:51:13 xor at freenetproject.org wrote:
> Author: xor
> Date: 2009-04-06 06:51:12 +0000 (Mon, 06 Apr 2009)
> New Revision: 26557
>
> Modified:
> trunk/freenet/src/freenet/support/DoublyLinkedList.java
> Log:
> Add more comments to the FIXME.
So can we un-deprecate it?
>
> Modified: trunk/freenet/src/freenet/support/DoublyLinkedList.java
> ===================================================================
> --- trunk/freenet/src/freenet/support/DoublyLinkedList.java 2009-04-06
06:49:39 UTC (rev 26556)
> +++ trunk/freenet/src/freenet/support/DoublyLinkedList.java 2009-04-06
06:51:12 UTC (rev 26557)
> @@ -18,6 +18,16 @@
> Keep it out from the new code if you can.
>
> IF you REALLY HAVE to use it, PLEASE add a junit test for all new method
you created."
> +
> +----------
> +toad replied:
> +> The purpose of DoublyLinkedList is simply and solely so that
> +> we can override the entries with our own classes. This makes
> +> removal for example extremely
> +> fast: O(1) not O(n). In any other case we can use LinkedList.
> +-----------
> +
> +so should we keep this class and use it everywhere or not?
> */
> @Deprecated
> public interface DoublyLinkedList<T extends DoublyLinkedList.Item<?>>
extends Iterable<T> {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 835 bytes
Desc: This is a digitally signed message part.
URL:
<https://emu.freenetproject.org/pipermail/devl/attachments/20090407/7f201a89/attachment.pgp>