PMD是一个开源的java原代码分析工具,它可以发现未使用的变量,空的catch块,不必要的对象创建,以及更多其他的。他还包括一个CPD工具,能够检测大量相同的代码。PMD可以插件的形式支持
JDeveloper, Eclipse, JEdit, JBuilder, Omnicore's CodeGuide, NetBeans/Sun ONE Studio, IntelliJ IDEA, TextPad, Maven, Ant, Gel, JCreator, and Emacs等工具.
This release includes eight new rules, a slew of bugfixes, and better support for JDK 1.5. Several rules were optimized; for example, UnusedModifer now runs about ten times faster.
You can download it from
sourceforge.
Form:
http://www.theserverside.com/news/thread.tss?thread_id=33852