Java Pesticides
When it comes to programming, bugs are inevitable. PMD is one of the open source java code inspector. It scans the source code and identifies
- Empty try/catch/finally/switch blocks
- Unused local variables, parameters and private methods
- Empty if/while statements
- Overcomplicated expressions - unnecessary if statements, or loops that could be while loops
- Classes with high Cyclomatic Complexity measurements

It can just simply plug-in to your favourite IDE, or work together with Ant. The other available options are: