Fork me on GitHub

PMD Release Notes

27-March-2017 - 5.4.6

The PMD team is pleased to announce PMD 5.4.6.

This is a bug fixing release.

Fixed Issues

  • general:
    • #305: [core] PMD not executing under git bash
  • java:
    • #309: [java] Parse error on method reference
  • java-design:
    • #275: [java] FinalFieldCouldBeStatic: Constant in @interface incorrectly reported as “could be made static”
  • java-junit:
    • #285: [java] JUnitTestsShouldIncludeAssertRule should support @Rule as well as @Test(expected = …)
  • java-optimizations:
    • #222: [java] UseStringBufferForStringAppends: False Positive with ternary operator
  • java-strings:
    • #290: [java] InefficientEmptyStringCheck misses String.trim().isEmpty()

External Contributions

  • #303: [java] InefficientEmptyStringCheckRule now reports String.trim().isEmpty()
  • #307: [java] Fix false positive with UseStringBufferForStringAppendsRule
  • #308: [java] JUnitTestsShouldIncludeAssertRule supports @Rule annotated ExpectedExceptions