On Monday 23 February 2009 13:43:44 Daniel Cheng wrote:
> On Thu, Feb 5, 2009 at 3:44 AM, <toad at freenetproject.org> wrote:
> > Author: toad
> > Date: 2009-02-04 19:44:01 +0000 (Wed, 04 Feb 2009)
> > New Revision: 25559
> >
> > Modified:
> >
branches/db4o/freenet/src/freenet/client/async/SplitFileInserterSegment.java
> > Log:
> > Duh...
> >
> >
> > Modified:
branches/db4o/freenet/src/freenet/client/async/SplitFileInserterSegment.java
> > ===================================================================
> > ---
branches/db4o/freenet/src/freenet/client/async/SplitFileInserterSegment.java
2009-02-04 19:33:33 UTC (rev 25558)
> > +++
branches/db4o/freenet/src/freenet/client/async/SplitFileInserterSegment.java
2009-02-04 19:44:01 UTC (rev 25559)
> > @@ -969,7 +969,7 @@
> > checkFinished[checkNum] =
true;
> > checkFailed[checkNum] =
true;
> > blocksCompleted++;
> > - blocks.remove(blockNum);
> > + blocks.remove(new
Integer(blockNum));
>
> Why?
> Add a comment here if it is really needed.
> Or it may be removed in some auto-boxing "fix" later
It's an array. There is a remove(int index) as well as remove(Object member)!
Granted this should probably be commented...
-------------- 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/20090223/dc01caf2/attachment.pgp>