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<!-- google adv --> google_ad_client = "pub-9232855773311077"; google_ad_width = 300; google_ad_height = 250; google_ad_format = "300x250_as"; google_ad_channel =""; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "0000FF"; google_color_url = "008000"; google_color_text = "000000";
<iframe name="google_ads_frame" marginwidth="0" marginheight="0" src="http://pagead2.googlesyndication.com/pagead/ads?client=ca-pub-9232855773311077&dt=1115895579812&format=300x250_as&output=html&color_bg=FFFFFF&color_text=000000&color_link=0000FF&color_url=008000&color_border=FFFFFF&cc=551&u_h=768&u_w=1024&u_ah=740&u_aw=1024&u_cd=16&u_tz=480&u_his=4&u_java=true" frameborder="0" width="300" scrolling="no" height="250" allowtransparency="65535"></iframe>