Programming Mistake Detector (PMD) is a static source code analyzer it finds common programming flaws like unused variables, empty catch blocks, unnecessary object creation, and so forth Plugins Maven - Programming Mistake Detector (PMD) Plugin Resources https://pmd.github.io/latest/index.html