Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 2.63 KB

release_notes.md

File metadata and controls

53 lines (38 loc) · 2.63 KB
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

Fixed Issues

  • apex
    • #4096: [apex] ApexAssertionsShouldIncludeMessage and ApexUnitTestClassShouldHaveAsserts: support new Assert class (introduced with Apex v56.0)
  • core
    • #3970: [core] FileCollector.addFile ignores language parameter
  • java-codestyle
    • #4082: [java] UnnecessaryImport false positive for on-demand imports of nested classes

API Changes

Deprecated API

  • In order to reduce the dependency on Apex Jorje classes, the following methods have been deprecated. These methods all leaked internal Jorje enums. These enums have been replaced now by enums the PMD's AST package.

    • {% jdoc !!apex::lang.apex.ast.ASTAssignmentExpression#getOperator() %}
    • {% jdoc !!apex::lang.apex.ast.ASTBinaryExpression#getOperator() %}
    • {% jdoc !!apex::lang.apex.ast.ASTBooleanExpression#getOperator() %}
    • {% jdoc !!apex::lang.apex.ast.ASTPostfixExpression#getOperator() %}
    • {% jdoc !!apex::lang.apex.ast.ASTPrefixExpression#getOperator() %}

    All these classes have now a new getOp() method. Existing code should be refactored to use this method instead. It returns the new enums, like {% jdoc apex::lang.apex.ast.AssignmentOperator %}, and avoids the dependency to Jorje.

External Contributions

  • #4081: [apex] Remove Jorje leaks outside ast package - @eklimo
  • #4083: [java] UnnecessaryImport false positive for on-demand imports of nested classes (fix for #4082) - @abyss638
  • #4092: [apex] Implement ApexQualifiableNode for ASTUserEnum - @aaronhurst-google
  • #4095: [core] CPD: Added begin and end token to XML reports - @pacvz
  • #4097: [apex] ApexUnitTestClassShouldHaveAssertsRule: Support new Assert class (Apex v56.0) - @tprouvot
  • #4104: [doc] Add MegaLinter in the list of integrations - @nvuillam

{% endtocmaker %}