pmd/docs/pages/release_notes.md
2021-04-20 17:37:22 +02:00

3.0 KiB

title permalink keywords
PMD Release Notes pmd_release_notes.html changelog, release notes

{{ site.pmd.date }} - {{ site.pmd.version }}

The PMD team is pleased to announce PMD {{ site.pmd.version }}.

This is a {{ site.pmd.release_type }} release.

{% tocmaker is_release_notes_processor %}

New and noteworthy

New rules

  • The new Java rule {% rule "java/bestpractices/UseStandardCharsets" %} finds usages of Charset.forName, where StandardCharsets can be used instead.

    This rule is also part of the Quickstart Ruleset (rulesets/java/quickstart.xml) for Java.

  • The new Java rule {% rule "java/codestyle/UnnecessaryImport" %} replaces the rules {% rule "java/bestpractices/UnusedImports" %}, {% rule "java/codestyle/DuplicateImports" %}, {% rule "java/errorprone/ImportFromSamePackage" %}, and {% rule "java/codestyle/DontImportJavaLang" %}.

    This rule is also part of the Quickstart Ruleset (rulesets/java/quickstart.xml) for Java.

Deprecated rules

  • java-bestpractices

    • {% rule java/bestpractices/UnusedImports %}: use the rule {% rule "java/codestyle/UnnecessaryImport" %} instead
  • java-codestyle

    • {% rule java/codestyle/DuplicateImports %}: use the rule {% rule "java/codestyle/UnnecessaryImport" %} instead
    • {% rule java/codestyle/DontImportJavaLang %}: use the rule {% rule "java/codestyle/UnnecessaryImport" %} instead
  • java-errorprone

    • {% rule java/errorprone/ImportFromSamePackage %}: use the rule {% rule "java/codestyle/UnnecessaryImport" %} instead

Fixed Issues

  • apex-performance
    • #3198: [apex] OperationWithLimitsInLoopRule: Support more limit consuming static method invocations
  • java-bestpractices
    • #3190: [java] Use StandardCharsets instead of Charset.forName
    • #3224: [java] UnusedAssignment crashes with nested records
  • java-codestyle
    • #3128: [java] New rule UnnecessaryImport, deprecate DuplicateImports, ImportFromSamePackage, UnusedImports
  • java-errorprone
    • #2757: [java] CloseResource: support Lombok's @Cleanup annotation
    • #3169: [java] CheckSkipResult: NPE when using pattern bindings

API Changes

External Contributions

{% endtocmaker %}