Java 代碼檢查工具,PMD 5.3.4 發布

jopen 9年前發布 | 11K 次閱讀 PMD

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

    </li>

  • #1371: InsufficientStringBufferDeclaration not detected properly on StringBuffer

    </li>

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

    </li>

  • #1384: NullPointerException in ConsecutiveLiteralAppendsRule

    </li>

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

    </li>

  • #1392: SimplifyStartsWith false-negative

    </li>

  • #1393: PMD hanging during DataflowAnomalyAnalysis

    </li>

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

    </li>

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

    </li>

  • #1396: PrematureDeclaration lambda false positive

    </li>

  • #1397: StringToString should ignore method references

    </li>

  • #1398: False positive for GuardLogStatementJavaUtil with Log4j

    </li>

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

    </li>

  • #1400: False positive with JUnit4TestShouldUseBeforeAnnotation

    </li>

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

    </li>

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

    </li>

  • #1403: False positive UnusedPrivateMethod with JAVA8

    </li>

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

    </li>

  • #1405: UnusedPrivateMethod false positive?

    </li> </ul>

    下載: