Java 代碼檢查工具,PMD 5.3.4 發布
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>下載:
- </li>
- </li>
-
</li>
</ul>
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!