directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Knecht <fel...@apache.org>
Subject Re: Is this Exception catch really wanted?
Date Sat, 15 May 2010 08:15:17 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Kiran

Thanks for quick reply. I'll annotate them as false positives in this case.

Felix

On 05/15/10 10:07, Kiran Ayyagari wrote:
> hi Felix,
> 
>> In LdapCoreSessionConnection.java we have multiple constructs like (see
>> below). The methods declares tho throw 2 Exceptions, but with this
>> construct they are never thrown. Is this on purpose?
> yeah, cause in this implementation of LdapConnection interface there
> is no network layer
> involved and the throws clause is just there to adhere to the
> interface signatures
> 
> can fill the catch block with a log statement if required to avoid
> false positives in the reports
> 
> Kiran Ayyagari
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvuWBUACgkQ2lZVCB08qHFkjgCgzOb9Aj4B4pDfkZtU9jgpE1O4
JxoAn1fP2WGoeFpJVdJFqIqpMG8F7eI5
=5u8c
-----END PGP SIGNATURE-----

Mime
View raw message