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. > > 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); > + } > } > > _______________________________________________ > cvs mailing list > [email protected] > http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs > _______________________________________________ Devl mailing list [email protected] http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
