On Monday 09 March 2009 00:43:42 Daniel Cheng wrote:
> On Sun, Mar 8, 2009 at 5:17 AM,  <toad at freenetproject.org> wrote:
> > Author: toad
> > Date: 2009-03-07 21:17:27 +0000 (Sat, 07 Mar 2009)
> > New Revision: 25955
> >
> > Modified:
> > ? branches/db4o/freenet/src/freenet/client/InsertBlock.java
> > ? branches/db4o/freenet/src/freenet/client/async/SingleFileInserter.java
> > Log:
> > Don't clone here, we can just pass it on
> >
> >
> > Modified: branches/db4o/freenet/src/freenet/client/InsertBlock.java
> > ===================================================================
> > --- branches/db4o/freenet/src/freenet/client/InsertBlock.java ? 2009-03-07 
21:05:53 UTC (rev 25954)
> > +++ branches/db4o/freenet/src/freenet/client/InsertBlock.java ? 2009-03-07 
21:17:27 UTC (rev 25955)
> > @@ -67,10 +67,15 @@
> > ? ? ? ?}
> >
> > ? ? ? ?/** Null out the data so it doesn't get removed in removeFrom().
> > - ? ? ? ?* Call this when the data becomes somebody else's problem. You 
should clone()
> > - ? ? ? ?* the desiredURI and clientMetadata, since these are always 
removed. */
> > + ? ? ? ?* Call this when the data becomes somebody else's problem. */
> > ? ? ? ?public void nullData() {
> > ? ? ? ? ? ? ? ?data = null;
> > ? ? ? ?}
> > +
> > + ? ? ? /** Null out the URI so it doesn't get removed in removeFrom().
> > + ? ? ? ?* Call this when the URI becomes somebody else's problem. */
> > + ? ? ? public void nullURI() {
> > + ? ? ? ? ? ? ? this.desiredURI = null;
> > + ? ? ? }
> >
> > ?}
> >
> > Modified: 
branches/db4o/freenet/src/freenet/client/async/SingleFileInserter.java
> > ===================================================================
> > --- 
branches/db4o/freenet/src/freenet/client/async/SingleFileInserter.java ? ? 
?2009-03-07 
21:05:53 UTC (rev 25954)
> > +++ 
branches/db4o/freenet/src/freenet/client/async/SingleFileInserter.java ? ? 
?2009-03-07 
21:17:27 UTC (rev 25955)
> > @@ -196,6 +196,7 @@
> > ? ? ? ? ? ? ? ?int blockSize;
> > ? ? ? ? ? ? ? ?int oneBlockCompressedSize;
> >
> > + ? ? ? ? ? ? ? boolean isCHK = false;
> > ? ? ? ? ? ? ? ?String type = block.desiredURI.getKeyType();
> > ? ? ? ? ? ? ? ?if(type.equals("SSK") || type.equals("KSK") || 
type.equals("USK")) {
> 
> Some code is handling keyType using "equalsIgnoreCase()", but some are not.
> Is this a bug?

Yes, however didn't I change it to .isSSK() || .isKSK() || .isUSK() ?
-------------- 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/20090310/39667c60/attachment.pgp>

Reply via email to