PMD scans Java source code and looks for potential problems like: a) Possible bugs - empty try/catch/finally/switch statements; b) Dead code - unused local variables, parameters and private methods; c) Suboptimal code - wasteful String/StringBuffer usage; d) Overcomplicated expressions - unnecessary if statements, for loops that could be while loops; and e) Duplicate code - copied/pasted code means copied/pasted bugs. You can get an overview of all the rules at the rulesets index page. PMD is integrated with JDeveloper, Eclipse, JEdit, JBuilder, BlueJ, CodeGuide, NetBeans/Sun Java Studio Enterprise/Creator, IntelliJ IDEA, TextPad, Maven, Ant, Gel, JCreator, and Emacs. This has been added to World Wide Web Reference Subject Tracer™ Information Blog.
posted by Marcus Zillman |
4:05 AM