Java 代码检查工具,PMD 5.3.4 发布

jopen 9年前

PMD是扫描 Java 源码并查找以下潜在问题:
     从未用过的局部变量
     空捕捉块(catch block)
      从未用过的参数
     空if声明
     重复的导入声明
    从未用过的私有方法
     孤立的类
     短型或长型变量及方法名

PMD 具有下列软件的插件:JEdit, JBuilder, NetBeans/Sun ONE Studio, IntelliJ IDEA, TextPad, Maven, Ant, Eclipse, Gel, Emacs


PMD 5.3.4 发布,此版本主要是 bug 修复:

  • #1370: ConsecutiveAppendsShouldReuse not detected properly on StringBuffer

  • #1371: InsufficientStringBufferDeclaration not detected properly on StringBuffer

  • #1380: InsufficientStringBufferDeclaration false positive when literal string passed to a lookup service

  • #1384: NullPointerException in ConsecutiveLiteralAppendsRule

  • #1388: ConstructorCallsOverridableMethodRule doesn't work with params?

  • #1392: SimplifyStartsWith false-negative

  • #1393: PMD hanging during DataflowAnomalyAnalysis

  • #1394: dogfood.xml - Unable to exclude rules [UncommentedEmptyMethod]

  • #1395: UnusedPrivateMethod false positive for array element method call

  • #1396: PrematureDeclaration lambda false positive

  • #1397: StringToString should ignore method references

  • #1398: False positive for GuardLogStatementJavaUtil with Log4j

  • #1399: False positive for VariableNamingConventions with annotation @interface

  • #1400: False positive with JUnit4TestShouldUseBeforeAnnotation

  • #1401: False positive for StringBuilder.append called with constructor

  • #1402: Windows-Only: File exclusions are not case insensitive

  • #1403: False positive UnusedPrivateMethod with JAVA8

  • #1404: Java8 'Unnecessary use of fully qualified name' in Streams Collector

  • #1405: UnusedPrivateMethod false positive?

下载: