On Saturday 21 February 2009 05:58:09 Daniel Cheng wrote:
> On Sat, Feb 21, 2009 at 4:48 AM,  <[email protected]> wrote:
> > Author: toad
> > Date: 2009-02-20 20:48:48 +0000 (Fri, 20 Feb 2009)
> > New Revision: 25750
> >
> > Modified:
> >   branches/db4o/freenet/src/freenet/client/FetchException.java
> > Log:
> > Doh, forgot FetchException.removeFrom()
> 
> Does this means plugins have to call FetchException.removeFrom() ?
> AFAIK, FetchException is used everywhere in plugins ...
> It would be very bad if all plugin writers have to understand/work with
> the db4o layer.

Only if they use it. FetchException need only be removed from the database if 
it has been stored to the database.
> 
> > Modified: branches/db4o/freenet/src/freenet/client/FetchException.java
> > ===================================================================
> > --- branches/db4o/freenet/src/freenet/client/FetchException.java        
2009-02-20 20:48:05 UTC (rev 25749)
> > +++ branches/db4o/freenet/src/freenet/client/FetchException.java        
2009-02-20 20:48:48 UTC (rev 25750)
> > @@ -3,6 +3,8 @@
> >  * http://www.gnu.org/ for further details of the GPL. */
> >  package freenet.client;
> >
> > +import com.db4o.ObjectContainer;
> > +
> >  import freenet.keys.FreenetURI;
> >  import freenet.l10n.L10n;
> >  import freenet.support.Logger;
> > @@ -396,4 +398,12 @@
> >        public void setNotFinalizedSize() {
> >                this.finalizedSizeAndMimeType = false;
> >        }
> > +
> > +       public void removeFrom(ObjectContainer container) {
> > +               if(errorCodes != null)
> > +                       errorCodes.removeFrom(container);
> > +               if(newURI != null)
> > +                       newURI.removeFrom(container);
> > +               container.delete(this);
> > +       }
> >  }

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Devl mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl

Reply via email to