PMD is a Java source code analyzer. It finds unused variables, empty catch blocks, unnecessary object creation, and more. It includes CPD, a tool to detect chunks of identical code.
Nine new rules were added. XPath rule speedups were made. Memory usage was improved. A slew of bugs were fixed. PMD is now written using Java 1.5 features.
URL: PMD - PMD