[ImageJ-devel] when to close cursors, was Re: [fiji-devel] imglib coding style

Johannes Schindelin Johannes.Schindelin at gmx.de
Mon Apr 19 10:12:23 CDT 2010


Hi,

On Fri, 16 Apr 2010, Albert Cardona wrote:

> A short note: the cursor class could have an @Override on the
> finalize() method from class Object, and in it call .close().

Might be a bad idea:

	http://www.javafaq.nu/java-article259.html

In short: implementing finalize() can impose a significant slow-down on 
the garbage collector.

Ciao,
Dscho




More information about the ImageJ-devel mailing list