PMD是一個開源的java原代碼分析工具,它可以發(fā)現(xiàn)未使用的變量,空的catch塊,不必要的對象創(chuàng)建,以及更多其他的。他還包括一個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