PeeEmDee (PMD) is a static ruleset-based Java SourceCode analyzer that identifies potential problems like:
Typically, PeeEmDee errors are not true errors, but rather inefficient code, i.e. the application could still function properly even if they were not corrected.
Homepage: http://pmd.sourceforge.net
To many PeeEmDee errors are style arguments elevated to laws. Examples include CollapsibleIfStatements? or UselessParentheses? that violate the concept of Clarity overides style every time. Then you are expected to clutter the code with @SuppressWarnings?("PMD") to suppress the false failures. MartinSpamer
see also TestingFramework