Tools

Detect Singleton patterns and that unused and dirty Java code with Eclipse, Jbuilder, Netbeans, IntelliJ IDEA, Maven, Ant, Gel a

PMD scans Java source code and looks for potential problems like:

  • Unused local variables
  • Empty catch blocks
  • Unused parameters
  • Empty 'if' statements
  • Duplicate import statements
  • Unused private methods
  • Classes which could be Singletons
  • Short/long variable and method names

PMD has plugins for JEdit, JBuilder, Netbeans/Forte/Sun ONE, IntelliJ IDEA, Maven, Ant, Eclipse,

Gel, and Emacs. You can download everything from here.

Thanks to Tom Copeland for this!

Average rating
(0 votes)

Comments

Detect Singleton patterns and that unused and dirty Java code wi

Most of that, and more ("silly" assignment: a=a; redundant cast, unused imports, invalid JavaDoc...), IDEA can do itself and it shows these as you code, instantly.

Similar entries