PMD
SourceForge, Inc. - 56.00 MB (Freeware)
PMD (also called Programming Mistake Detector) is a java-based development tool for Windows that helps programmers to analyze and correct their code. Using the app, you can scan your java code for common errors like bugs, unused variables, empty catch blocks, duplicated code, overcomplicated expressions and suboptimal code and fix them accordingly.