Right I get it. Throwable seem to make sense in this case. Sonar won't like the "catch Throwable", would need a "// NOPMD" or "// NOSONAR" comment.
Kind regards, Joachim On 05/16/2011 11:34 AM, Andrea Aime wrote: > On Mon, May 16, 2011 at 11:30 AM, Joachim Van der Auwera > <[email protected]> wrote: >> Dear Andrea, >> >> I think the better way to handle this is by closing the connection in a >> finally block. > Nope cannot be done this way. The connection needs to be passed to the reader > object, we cannot close it, but we have to close it in case we fail to > succesfully > create the reader. > > Makes sense? > > Cheers > Andrea > -- Joachim Van der Auwera Geosparc, supporting the Geomajas GIS community ------------------------------------------------------------------------------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
