-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 05/17/10 22:05, Stefan Seelmann wrote: > Felix Knecht schrieb: >> This piece of code will never be reached because if line 54 - iterators >> can't be null at this point! >> http://people.apache.org/~felixk/shared-docs/xref/org/apache/directory/shared/ldap/util/JoinIterator.html#64 > > JoinIterator seems never be used, except in JoinIteratorTest. I'd > suggest to delete both classes. > > Can findbugs or other static analysis tools be used to find unused code?
PMD [1] report can find some of them: Here are quite up to date PMD reports of shared and apacheds. If you want me to update them please ping me. http://people.apache.org/~felixk/shared-docs/pmd.html http://people.apache.org/~felixk/apacheds-docs/pmd.html HTH Felix [1] http://pmd.sourceforge.net/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkvxpjMACgkQ2lZVCB08qHHNMQCgnrDGZk8falnSpBL2PyUTq4TY blsAnibw5/NmTLgGEkWrFNT1YTPgl4Rd =90MW -----END PGP SIGNATURE-----
