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

Curtis Rueden ctrueden at wisc.edu
Wed Apr 14 17:10:29 CDT 2010


Hi Johannes,

At the hackathon Steffi told me it is best practice to always close cursors.
I had not done this in SquareTest so I committed a change that now does so.

Thanks,
Curtis

On Wed, Apr 14, 2010 at 4:51 PM, Johannes Schindelin <
Johannes.Schindelin at gmx.de> wrote:

> Hi,
>
> while writing a base class for JUnit tests, I realized that I did not
> close() the cursors when cursor.hasNext() returned false. Are you supposed
> to close() them even then?
>
> Ciao,
> Johannes
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://imagej.net/pipermail/imagej-devel/attachments/20100414/ab68da02/attachment.html>


More information about the ImageJ-devel mailing list