GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Releases · pmd/pmd

Releases · pmd/pmd

PMD 7.30.0 (27-November-2026)

PMD 7.30.0 (27-November-2026) Latest
Latest
@pmd-actions-helper pmd-actions-helper released this 27 Nov 08:55
pmd_releases/7.30.0
This tag was signed with the committer’s verified signature. The key has expired.
adangel Andreas Dangel
GPG key ID: 93450DF2DF9A3FA3
Expired
Verified
Learn about vigilant mode.
c07be4e
This commit was signed with the committer’s verified signature. The key has expired.
adangel Andreas Dangel
GPG key ID: 93450DF2DF9A3FA3
Expired
Verified
Learn about vigilant mode.

27-November-2026 - 7.30.0

The PMD team is pleased to announce PMD 7.30.0.

This is a minor release.

Table Of Contents

  • 🚀️ New and noteworthy
    • Security fixes
    • Updated PMD Designer
  • 🌟️ New and Changed Rules
    • New Rules
    • Changed Rules
    • Deprecated Rules
  • 🐛️ Fixed Issues
  • 🚨️ API Changes and Deprecations
    • Experimental API
    • Deprecations
    • Other API changes
  • ✨️ Merged pull requests
  • 📦️ Dependency updates
  • 📈️ Stats

🚀️ New and noteworthy

Security fixes

All known security vulnerabilities are described in full detail on the page
PMD Security. This release, the following
security vulnerabilities were fixed:

  • GHSA-p8c4-pmh9-36vf:
    Uncontrolled recursion (StackOverflowError) in regex matching of several PMD rules for crafted input.
    Several rules (UnnecessaryImport, AvoidUsingHardCodedIP, VfUnescapeEl) used regular expressions
    that could throw a StackOverflowError on crafted, very long input (for example a Javadoc comment,
    string literal or attribute value of a few kilobytes), which aborted the whole analysis run. The patterns
    now match in linear time without deep recursion, so such input no longer causes an error.
    Affected versions: net.sourceforge.pmd:pmd-core >= 7.0.0, <= 7.29.0;
    net.sourceforge.pmd:pmd-java >= 6.34.0, <= 7.29.0;
    net.sourceforge.pmd:pmd-visualforce >= 5.6.0, <= 7.29.0

Updated PMD Designer

This PMD release ships a new version of the pmd-designer.
PMD's binary distribution now ships ControlsFX 8 for Java 8 and ControlsFX 11 for OpenJFX and Java 11+.
Java 9 and 10 are not supported.
For the changes, see PMD Designer Changelog (7.30.0).

🌟️ New and Changed Rules

New Rules

  • The new Java rule ControlFlowInTest
    reports control flow in test methods that can obscure which assertions
    are executed. It checks conditionals, switch statements and expressions,
    explicit throw statements, try statements with catch clauses,
    and plain try-finally statements.
    Loops are allowed by default and can be reported by setting
    allowLoops to false.

Changed Rules

  • The Apex rule ApexUnitTestShouldNotUseSeeAllDataTrue has a new property
    reportConnectApi. It defaults to true. Set it to false, and the rule does not report seeAllData=true on a
    test class or test method that calls a ConnectApi method, since most ConnectApi methods require seeAllData=true
    in tests. A call to a setTest... method does not stop the rule from reporting, because it only registers test data.
    Nor does a call to the regular method whose test data a setTest... call in the same test registers
    (see #7236).

Deprecated Rules

  • The Java rule AddEmptyString is deprecated without replacement
    and will be removed with PMD 8.0.0. Its performance claim is not valid on modern JDKs:
    constant string concatenations are evaluated at compile time, and replacing concatenation
    with toString() or String.valueOf() does not generally improve performance.
    The rule is excluded when referencing the whole Performance category, but explicit rule
    references continue to work during the deprecation period.

🐛️ Fixed Issues

  • apex
    • #7108: [apex] Expose DML AccessMode (as user / as system) for XPath rules
    • #7182: [apex] Expose the referenced type name on ClassRefExpression for XPath rules
  • apex-bestpractices
    • #5669: [apex] ApexUnitTestMethodShouldHaveIsTestAnnotation: Violation range should only cover the method name
    • #7236: [apex] ApexUnitTestShouldNotUseSeeAllDataTrue: False positive for test classes that call ConnectApi
  • apex-design
    • #4863: [apex] CyclomaticComplexity: False negative with switch statements
  • apex-errorprone
    • #5906: [apex] MethodWithSameNameAsEnclosingClass: Violation range should only cover the method name
  • core
    • #5760: [core] SarifRenderer does not respect relativizeRoots
  • java
    • #7144: [java] Lambda block body that cannot complete normally is not treated as value-compatible
    • #7240: [java] "Not a Java binary name" when importing a class with non-ASCII (e.g. Japanese) letters in its name; the whole file is skipped
    • #7313: [java] Casts to boolean and boolean equality are not folded as constant expressions
  • java-bestpractices
    • #5016: [java] UnusedAssignment: False positive boolean flag for execution and reset in finally
    • #7070: [java] CheckResultSet: False negative caused by unrelated if/while
    • #7116: [java] New rule: ControlFlowInTest
    • #7216: [java] GuardLogStatement: False positive on SLF4J parameterised calls whose arguments are wrapped with logstash value(...)
  • java-codestyle
    • #6731: [java] UnnecessaryFullyQualifiedName: False positive for lombok.Builder annotation
    • #7215: [java] UnnecessaryImport: False positive for on-demand imports with incomplete aux-classpath
    • #7396: [java] UnnecessaryImport: Fix StackOverflowError for very long Javadoc references
  • java-design
    • #5798: [java] NPathComplexity: Short-circuit operators outside of conditions counted as branches
    • #7277: [java] AvoidRethrowingException: False negative if rethrow is wrapped in a block, ExceptionAsFlowControl false positive instead
    • #7279: [java] InternalApiUsage: False positive when static field is used in constructor
  • java-errorprone
    • #4531: [java] MissingStaticMethodInNonInstantiatableClass: False positive with multiple top-level classes
    • #7275: [java] AvoidBranchingStatementAsLastInLoop: False negative when the statement is in a bare block
  • java-multithreading
    • #2786: [java] UseConcurrentHashMap: False positive for ConcurrentSkipListMap
  • java-performance
    • #6327: [java] AddEmptyString: Deprecate rule because performance claim is not valid anymore
    • #7327: [java] AvoidArrayLoops: False negative for a copy loop whose body has no braces
  • jsp
    • #5092: [jsp] Parse error when <!DOCTYPE> or <?xml?> follows other content
  • kotlin
    • #7168: [kotlin] Add @TypeName to VariableDeclaration, fix destructuring type leak
    • #7171: [kotlin] Support the ..< range operator (Kotlin 1.9)
  • misc
    • #6655: Deprecate ANTLR generated lexer implementation classes

🚨️ API Changes and Deprecations

  • apex
    • DML statement nodes now expose @AccessMode.
      The attribute is always present. Its value is IMPLICIT, USER_MODE, or SYSTEM_MODE.
      //DmlInsertStatement[@AccessMode='IMPLICIT'] and //DmlInsertStatement[@AccessMode='SYSTEM_MODE'] select those statements.

Experimental API

  • kotlin
    • KtVariableDeclarationAttributes now implements
      HasTypeName, so VariableDeclaration nodes have a @TypeName attribute.
      This covers property and for-loop variables, lambda parameters, and each component of a
      destructuring declaration (val (a, b) = ..., for ((a, b) in ...), { (a, b) -> ... }).
      The XPath functions pmd-kotlin:typeIs, pmd-kotlin:typeIsExactly and pmd-kotlin:isNullable
      support VariableDeclaration nodes as well.
    • A destructuring PropertyDeclaration (e.g. val (a, b) = Pair(1, "x")) no longer has a @TypeName.
      Before, it wrongly got the type of the first component. To find destructured variables
      by type, query the component nodes instead: //VariableDeclaration[pmd-kotlin:typeIs('kotlin.Int')].

Deprecations

  • apex
    • AbstractDmlStatement#getRunAsMo...
Read more

Contributors

  • @dschach
  • @zbynek
  • @adangel
  • @stokpop
  • @Pankraz76
  • @UncleOwen
  • @markjoin123
  • @markksantos
  • @xubenqiang
  • @Gabrieljr42
  • @subotac
  • @HawkForge
  • @MichalKollarcik
  • @ahannah9
  • @noor-ahmadi
  • @wozhenbang2004
  • @princejain756
  • @saryn17
  • @shivampwm2020
  • @Eymenonar
  • @Lyin-OTTF
  • @greg-at-moderne
  • @InnoxCodes
  • @amritkang165
  • @dodoshell
dschach, zbynek, and 23 other contributors
Assets 10
Loading

Uh oh!

There was an error while loading. Please reload this page.

itzonevn and litetex reacted with thumbs up emoji
All reactions
  • 👍 2 reactions
2 people reacted

PMD 7.31.0-SNAPSHOT (27-November-2026)

PMD 7.31.0-SNAPSHOT (27-November-2026) Pre-release
Pre-release
@pmd-actions-helper pmd-actions-helper released this 27 Nov 09:16
pmd_releases/7.31.0-SNAPSHOT
50dba57
This commit was created on GitHub.com and signed with GitHub’s verified signature.
GPG key ID: B5690EEEBB952194
Verified
Learn about vigilant mode.

28-December-2026 - 7.31.0-SNAPSHOT

The PMD team is pleased to announce PMD 7.31.0-SNAPSHOT.

This is a minor release.

Table Of Contents

  • 🚀️ New and noteworthy
  • 🌟️ New and Changed Rules
    • New Rules
  • 🐛️ Fixed Issues
  • 🚨️ API Changes
  • ✨️ Merged pull requests
  • 📦️ Dependency updates
  • 📈️ Stats

🚀️ New and noteworthy

🌟️ New and Changed Rules

New Rules

  • The new Java rule MarkdownJavadocBeforeJava23
    reports comments starting with ///, so they can be reviewed before
    switching to Java 23. The rule stays off for Java 23 and later.

🐛️ Fixed Issues

  • java
    • #7392: [java] PMD 7.29.0 fails to resolve a switch pattern variable passed to an anonymous class constructor
  • java-bestpractices
    • #7308: [java] MethodReturnsInternalArray: document that private methods are not checked
    • #7310: [java] UnusedAssignment: i++ in a do-while condition reported as never used, unlike in a while
  • java-design
    • #7328: [java] CollapsibleIfStatements: not reported when a bare block separates the two if statements
  • java-documentation
    • #7057: [java] New rule: MarkdownJavadocBeforeJava23
  • java-performance
    • #3775: [java] ConsecutiveAppendsShouldReuse: False Negative when .append is wrapped by brace.

🚨️ API Changes

✨️ Merged pull requests

📦️ Dependency updates

📈️ Stats

Assets 10
Loading

Uh oh!

There was an error while loading. Please reload this page.

All reactions

PMD 7.29.0 (30-October-2026)

PMD 7.29.0 (30-October-2026)
@pmd-actions-helper pmd-actions-helper released this 30 Oct 09:31
pmd_releases/7.29.0
This tag was signed with the committer’s verified signature. The key has expired.
adangel Andreas Dangel
GPG key ID: 93450DF2DF9A3FA3
Expired
Verified
Learn about vigilant mode.
47b3135
This commit was signed with the committer’s verified signature. The key has expired.
adangel Andreas Dangel
GPG key ID: 93450DF2DF9A3FA3
Expired
Verified
Learn about vigilant mode.

30-October-2026 - 7.29.0

The PMD team is pleased to announce PMD 7.29.0.

This is a minor release.

Table Of Contents

  • 🚀️ New and noteworthy
    • Security fixes
  • 🌟️ New and Changed Rules
    • New Rules
    • Changed Rules
    • Deprecated Rules
  • 🐛️ Fixed Issues
  • 🚨️ API Changes
  • ✨️ Merged pull requests
  • 📦️ Dependency updates
  • 📈️ Stats

🚀️ New and noteworthy

Security fixes

All known security vulnerabilities are described in full detail on the page
PMD Security. This release, the following
security vulnerabilities were fixed:

  • GHSA-wj6q-xw9m-26p6:
    Arbitrary file disclosure in CPD via symlinks in analyzed sources.
    When collecting files, CPD followed symbolic links, even if their targets were outside the scanned
    directory. This allowed reading any file accessible to the user running CPD. If a CI/CD pipeline
    runs CPD on untrusted source code (e.g. a pull request from an external contributor), an attacker
    could commit two symlinks pointing to the same file outside the project. CPD detected them as
    duplicates and wrote the full content of the target file into the report. If the report was
    published, e.g. as a CI artifact, the attacker could read it.
    With this fix, neither PMD nor CPD follows symbolic links anymore when collecting files to analyze.
    Affected versions: PMD >= 6.54.0 and <= 7.28.0. If you run CPD on untrusted source code,
    it is recommended to upgrade PMD.
    Reported by Dan (@7alen7).
    Independently reported by lapeace (@ThejasRajamoney).
  • GHSA-5x5v-644m-q2qc:
    XSS via externalInfoUrl in HTML report formats.
    The html and summaryhtml renderers inserted a rule's externalInfoUrl into generated reports
    without escaping or URL-scheme validation. With a crafted ruleset, this allowed injected markup that
    runs when the report is opened (with --show-suppressed), or javascript: links that run when clicked.
    This only affects setups where PMD loads an untrusted ruleset and the resulting HTML report is viewed
    in a browser.
    Affected versions: PMD 7.28.0 and earlier. If you use the html or summaryhtml report formats, it is
    recommended to upgrade PMD.
    Reported by lapeace (@ThejasRajamoney).
  • GHSA-x2h8-xxj6-pf6c:
    XSS via rule name in summaryhtml report format.
    The summaryhtml renderer wrote rule names into the report without HTML escaping. A ruleset with a
    crafted rule name could inject JavaScript that runs in the browser of anyone who opens the report.
    This affects setups that use --format summaryhtml together with a ruleset from an untrusted source,
    e.g. CI/CD pipelines that use a ruleset from a pull request by an external contributor.
    If the report is served from a web host (e.g. a CI dashboard), the script runs in that origin.
    This is a follow-up to CVE-2026-28338, whose fix did not cover the summaryhtml renderer.
    Affected versions: PMD 7.28.0 and earlier. If you use the summaryhtml report format, it is
    recommended to upgrade PMD.
    Reported by Dan (@7alen7).
    Independently reported by lapeace (@ThejasRajamoney).
  • GHSA-9hm5-r2r7-hjcq:
    Local file reads through XXE in PMD rule tests.
    Normal usage of PMD for analyzing source code is not affected. Only projects that develop custom
    rules and test them with PMD's rule test framework (modules pmd-test and pmd-test-schema) are affected.
    The parser for rule-test XML files did not disable DTDs and external entities. A crafted rule-test XML
    file could therefore read a local file and place its contents into a parsed test description. Since the
    description is used as the name of the JUnit test, the file contents could appear in test results.
    This is relevant when rule-test XML files from untrusted sources are executed, e.g. in a CI/CD pipeline
    for pull requests from external contributors.
    With this fix, DTDs are disabled. Rule-test XML files containing a DOCTYPE declaration are rejected.
    This was never officially supported, as PMD doesn't provide a DTD for rule-test XML files.
    Affected versions: pmd:pmd >= 3.9, net.sourceforge.pmd:pmd-test <= 6.47.0,
    net.sourceforge.pmd:pmd-test-schema <= 7.28.0. If you test custom rules with PMD's rule test
    framework, it is recommended to upgrade PMD.
    Reported by lapeace (@ThejasRajamoney).
  • GHSA-wv72-2ccf-28gj:
    Blind SSRF through Visualforce metadata parser.
    When resolving custom field types, the Visualforce module parsed Salesforce *.field-meta.xml files
    from the analyzed source tree without disabling external DTD loading. A crafted metadata file could
    therefore make PMD send a request to an attacker-chosen URL during analysis. This affects users who
    analyze Visualforce code from untrusted sources, such as pull requests.
    Affected versions: net.sourceforge.pmd:pmd-visualforce >= 6.30.0, <= 7.28.0
    Reported by lapeace (@ThejasRajamoney).
  • GHSA-jm8j-h474-h54h:
    Formula injection in CSV report format via unescaped quotes in file names.
    The CSV renderer neither escaped embedded double quotes nor neutralized values starting with
    formula trigger characters (=, +, -, @). This let a crafted source filename, or a rule name, ruleset name
    or rule message from an attacker-controlled ruleset, inject a formula into the CSV report, which a spreadsheet
    application could evaluate when the report is opened.
    Affected versions: pmd:pmd >= 1.2, net.sourceforge.pmd:pmd-core <= 7.28.0
    Reported by lapeace (@ThejasRajamoney).
    Independently reported by Hama1cco (@Hama1cco).

🌟️ New and Changed Rules

New Rules

  • The new Java rule ReplaceJavaUtilVector reports usages of java.util.Vector,
    including subclasses such as Stack, and suggests modern alternatives when thread safety is not required.
    It recommends ArrayList for Vector and Deque with an implementation such as ArrayDeque for Stack.
    A declaration such as Vector<String> v = new Vector<>() is reported only once, not twice. It replaces
    the rules ReplaceVectorWithList and UseArrayListInsteadOfVector, which are now deprecated (see below).
  • The new Java rule LocalVariableDeclarationShouldBeAtStartOfBlock enforces a code style
    where all local variables are declared together at the start of their block, without initialization.
    Optionally, the declarations can be required to be sorted by name or by type and name
    (see properties sortBy and caseSensitiveSorting).
  • The new Kotlin rule LooseCoupling reports declarations (properties,
    parameters, function return types) using concrete collection/map implementation types (e.g. ArrayList,
    HashMap) instead of the corresponding interface (e.g. List, Map). It is powered by the
    pmd-kotlin:typeIs() XPath function introduced in PMD 7.28.0.

Changed Rules

  • Several Java rules now benefit from improved constant folding (see #7060),
    which now recognizes final local variables and unqualified instance fields initialized with constant
    expressions. This may change the reported violations of the following rules:
    AvoidReassigningLoopVariables,
    LiteralsFirstInComparisons,
    UnusedAssignment,
    FinalFieldCouldBeStatic,
    UnconditionalIfStatement,
    UnusedNullCheckInEquals.
    Notably, LiteralsFirstInComparisons may report new violations when such a constant is the argument
    of a comparison.
  • The Java rule UseExplicitTypes has a new property allowLongTypeNames. It allows
    using var when the explicit type name would be longer than a given minimum length configured with
    this property.

Deprecated Rules

  • The Java rules ReplaceVectorWithList and
    [`U...
Read more

Contributors

  • @zbynek
  • @benstpierre
  • @adangel
  • @TrangOul
  • @stokpop
  • @UncleOwen
  • @markjoin123
  • @fudianchn
  • @lukasgraef
  • @anyingiit
  • @Eljees
  • @kalayciburak
  • @7alen7
  • @Gabrieljr42
  • @subotac
  • @aoto-tech
  • @AzazelSensei
  • @TanbirRamim
  • @noor-ahmadi
  • @Hama1cco
  • @saryn17
  • @Will-6543
  • @KaustAbhinand
  • @Eymenonar
  • @Akhil-1527
  • @ThejasRajamoney
  • @ybai08
  • @leeshengis
zbynek, benstpierre, and 26 other contributors
Assets 10
Loading

Uh oh!

There was an error while loading. Please reload this page.

All reactions

PMD 7.28.0 (25-September-2026)

PMD 7.28.0 (25-September-2026)
@pmd-actions-helper pmd-actions-helper released this 25 Sep 09:00
pmd_releases/7.28.0
This tag was signed with the committer’s verified signature. The key has expired.
adangel Andreas Dangel
GPG key ID: 93450DF2DF9A3FA3
Expired
Verified
Learn about vigilant mode.
79726f0
This commit was signed with the committer’s verified signature. The key has expired.
adangel Andreas Dangel
GPG key ID: 93450DF2DF9A3FA3
Expired
Verified
Learn about vigilant mode.

25-September-2026 - 7.28.0

The PMD team is pleased to announce PMD 7.28.0.

This is a minor release.

Table Of Contents

  • 🚀️ New and noteworthy
    • Kotlin XPath functions and type attributes
  • 🌟️ New and Changed Rules
    • New Rules
    • Changed Rules
  • 🐛️ Fixed Issues
  • 🚨️ API Changes
    • Experimental API
  • ✨️ Merged pull requests
  • 📦️ Dependency updates
  • 📈️ Stats

🚀️ New and noteworthy

Kotlin XPath functions and type attributes

Type data is now accessible in XPath rules via new attributes and helper functions (see Kotlin XPath rule support):

  • Type-info Attributes: @TypeName, @ReturnTypeName, @AnnotationFqNames
    are exposed on declaration nodes (property, function, class, parameter, catch, for-loop, delegation specifier,
    annotation nodes). These attributes depend on type resolution: they are only available when auxClasspath
    is configured and the kotlin-type-mapper analysis has resolved the types.
  • General Attributes: @Mutable, @Identifier, @Name
    are exposed on declaration and import related nodes. These attributes don't depend on type resolution, so
    they're always present regardless of auxClasspath.
  • XPath functions:
    • pmd-kotlin:typeIs(typeName): matches if the node's type is typeName or a subtype.
    • pmd-kotlin:typeIsExactly(typeName): matches the exact declared type only (no subtypes).
    • pmd-kotlin:hasAnnotation(name): matches if the node has an annotation with the given simple or FQN.
    • pmd-kotlin:modifiers(): returns the modifier keywords of a declaration as a sequence.
    • pmd-kotlin:isNullable(): returns true if the node's declared type is nullable (has ?).
    • pmd-kotlin:hasUnresolvedReference(): returns true if the node contains an unresolved reference.
    • pmd-kotlin:matchesSig(signature): matches call sites by method signature pattern (supports wildcards).

🌟️ New and Changed Rules

New Rules

  • The new Java rule OnDemandImport reports on-demand imports, also known as wildcard imports.
    By default, static imports from JUnit and TestNG are allowed. The allowed static and type import packages
    can be configured with allowStaticImportsFrom and allowTypeImportsFrom.
  • The new Java rule LongLiteralEndingWithLowercaseL finds long literals ending with a lowercase l.
    That helps to avoid confusion between numbers ending with 1 and l. Uppercase L should be used to define long literals.
  • The new Java rule TypeNameMismatch finds types that are not defined in a .java file
    with the same name. Enforcing a match between source file name and type name makes it easier to
    find source code for given type.
  • The new Java rule CStyleArrayDeclaration finds C-style declarations of arrays (e.g. int numbers[]).
    That helps you use Java-style declarations (e.g. int[] numbers) consistently throughout the codebase.
  • The new Java rule InternalApiUsage reports usages of internal or test-only APIs
    (e.g. annotated with @VisibleForTesting, @TestOnly, @API(status=INTERNAL) or @ApiStatus.Internal)
    from code that shouldn't depend on them.
  • The new Apex rule ApexUnitTestClassShouldHaveRunRelevantTestsAnnotation finds unit tests
    that do not use the new @IsTest(critical=true) or @IsTest(testFor='...') annotation parameters for tests.
    These parameters help to identify which tests should be executed during a RunRelevantTests deployment.
    Note: These annotation parameters are Beta and require Salesforce API 66.0+.

Changed Rules

  • The property checkNonStaticMethods of the rule NonThreadSafeSingleton is now
    deprecated and no longer has any effect. Its implementation did the opposite of what the documentation described.
    The rule now always reports both static and non-static methods; previously it reported only static methods
    by default.
    This may result in additional violations being reported.
    If you want to suppress violations for non-static methods, you can use
    suppression via XPath, e.g.
    <property name="violationSuppressXPath" value=".[ancestor-or-self::MethodDeclaration[1][@Static = false()]]" />
  • The property statementOrderMatters of the rule VariableCanBeInlined is now deprecated.
    Setting it to false relaxes the rule under the unsafe assumption that intervening statements have no side
    effects, which can lead to false positives. The property will be removed in PMD 8.0.0.

🐛️ Fixed Issues

  • apex-bestpractices
    • #6988: [apex] New rule: Detect usage of @IsTest(critical=true) / @IsTest(testFor='...') annotations (RunRelevantTests, Beta, API 66.0+)
  • core
    • #7013: [core] PMDConfiguration - "Can't mix setClasspath with getAuxClasspath!"
  • cli
    • #7090: [cli] Add the missing exit code 5 to the CLI help
  • html
    • #6135: [html] HtmlCpdLexer giving IndexOutOfBoundsException when script contains unescaped closing tag
  • java
    • #6926: [java] IllegalArgumentException (Mismatched list sizes) with inconsistent unresolved generic arity
    • #7056: [java] Provide ability to disable auxClasspath warning added in 7.27.0
    • #7081: [java] NoSuchFileException when auxClasspath is given as a classpath file (file: URL) (since 7.27.0)
    • #7101: [java] ZipException when auxClasspath contains a non-jar file (since 7.27.0)
  • java-bestpractices
    • #5940: [java] UnusedAssignment: False positive when assignment is in conditional statement
    • #6901: [java] MethodReturnsInternalArray: Various false negatives with local aliases and conditional expressions
    • #7033: [java] New rule: TypeNameMismatch
    • #7047: [java] New rule: OnDemandImport
  • java-codestyle
    • #3124: [java] UnnecessaryLocalBeforeReturn/VariableCanBeInlined: deprecate property statementOrderMatters
    • #5732: [java] UnnecessaryCast false positive with package private methods
    • #7026: [java] New rule: CStyleArrayDeclaration
  • java-design
    • #6513: [java] SimplifyConditional: False negative when null check and instanceof are separated by other && conditions
    • #6694: [java] SimplifyBooleanReturns triggers inconsistently depending on redundant parentheses in return expression
    • #6889: [java] New rule: InternalApiUsage
  • java-documentation
    • #6450: [java] DanglingJavadoc: False positive on /// comments for Java < 23
  • java-errorprone
    • #1050: [java] NullAssignment: False positive inside if statement for first assignment
    • #6693: [java] CloneMethodMustImplementCloneable: False positive with throw-via-local
    • #7009: [java] ReplaceJavaUtilDate: False negative when using pattern matching
    • #7027: [java] New rule: LongLiteralEndingWithLowercaseL
    • #7068: [java] UnusedReturnValue: False positive for calls made on Mockito.verify(mock)
  • java-multithreading
    • #6297: [java] AvoidUsingVolatile: Update documentation
    • #6780: [java] NonThreadSafeSingleton: False negative with property checkNonStaticMethods
  • java-security
    • #7007: [java] HardCodedCryptoKey: False negative when a hard-coded key is constructed via new String(char[])
    • #7008: [java] HardCodedCryptoKey: False positive when the key comes from System.getProperty()
  • kotlin
    • #6893: [kotlin] Add XPath functions and type attributes
  • miscellaneous
    • #6961: [doc] When a rule's description has a link to another rule in the exact wrong position, the do...
Read more

Contributors

  • @zbynek
  • @adangel
  • @stokpop
  • @tanvir-ux
  • @pzygielo
  • @UncleOwen
  • @NotAFlightRisk
  • @tprouvot
  • @hexonal
  • @fudianchn
  • @lukasgraef
  • @kalayciburak
  • @MakerYuichi
  • @renechoi
  • @Will-6543
  • @dweep-js
  • @suhanrain
zbynek, adangel, and 15 other contributors
Assets 10
Loading

Uh oh!

There was an error while loading. Please reload this page.

stokpop and DR4IVEN reacted with hooray emoji
All reactions
  • 🎉 2 reactions
2 people reacted

PMD 7.27.0 (28-August-2026)

PMD 7.27.0 (28-August-2026)
@pmd-actions-helper pmd-actions-helper released this 28 Aug 12:41
pmd_releases/7.27.0
This tag was signed with the committer’s verified signature. The key has expired.
adangel Andreas Dangel
GPG key ID: 93450DF2DF9A3FA3
Expired
Verified
Learn about vigilant mode.
360072e
This commit was signed with the committer’s verified signature. The key has expired.
adangel Andreas Dangel
GPG key ID: 93450DF2DF9A3FA3
Expired
Verified
Learn about vigilant mode.

28-August-2026 - 7.27.0

The PMD team is pleased to announce PMD 7.27.0.

This is a minor release.

Table Of Contents

  • 🚀️ New and noteworthy
    • Java 27 Support
    • Updated Apex Support
    • Kotlin type-aware analysis
  • 🌟️ New and Changed Rules
    • New Rules
    • Renamed Rules
    • Changed Rules
    • Deprecated Rules
  • 🐛️ Fixed Issues
  • 🚨️ API Changes
    • Deprecations
    • Experimental API
  • ✨️ Merged pull requests
  • 📦️ Dependency updates
  • 📈️ Stats

🚀️ New and noteworthy

Java 27 Support

This release of PMD brings support for Java 27.

There are no new standard language features.

There is one preview language feature:

  • JEP 532: Primitive Types in Patterns, instanceof, and switch (Fifth Preview)

In order to analyze a project with PMD that uses these preview language features,
you'll need to select the new language version 27-preview:

pmd check --use-version java-27-preview ...

Note: Support for Java 25 preview language features have been removed. The version "25-preview"
is no longer available.

Updated Apex Support

The Apex language support has been bumped to version 67.0 (Summer '26). It supports the new
Multiline String literals.

Kotlin type-aware analysis

Kotlin now supports type-aware analysis via the auxClasspath language property (see #6677).
Resolved type names, return types, and annotation FQNs are available through
KotlinNodeTypeData for use in Java-based rules.

Note: Type data is not yet accessible in XPath rules or the PMD Rule Designer. This will be added in the next version.

🌟️ New and Changed Rules

New Rules

  • The new java rule UnusedReturnValue (Java Error Prone) finds method calls whose result is not used,
    although ignoring the result of these method calls is likely a mistake.
    The rule is referenced in the quickstart.xml ruleset for Java.
  • New rule ProtectedMemberInFinalClass (Java Design) finds protected members defined in final classes.
    Such members should use package or private visibility to clarify their intended scope.
    The rule replaces now deprecated rules AvoidProtectedFieldInFinalClass and AvoidProtectedMethodInFinalClassNotExtending
    and flags members that were previously not detected by either of these rules, such as nested types or constructors.
    The rule is referenced in the quickstart.xml ruleset for Java.

Renamed Rules

  • The rule InstantiableUtilityClass (Java Design) was renamed from UseUtilityClass to better reflect the problem.
    The old name still works but is deprecated.

Changed Rules

  • The rule CommentRequired (Java Documentation)
    has a new property packageMethodCommentRequirement. It controls whether Javadoc comments are required (or
    unwanted) for package-private methods and constructors. Previously, only public and protected methods could
    be configured (via publicMethodCommentRequirement and protectedMethodCommentRequirement). The new property
    defaults to Ignored, so existing rule configurations are unaffected.
    This was implemented in #6880.
  • The rule BooleanGetMethodName (Java Codestyle) has a new property
    includeWrappedType. If set to true (default), the rule treats Boolean and boolean identical.
    If set to false, the rule follows the bean convention and treats Boolean like any other object.

Deprecated Rules

  • The java rule CheckSkipResult has been deprecated for removal
    in favor of the new rule UnusedReturnValue.
  • The java rule UselessPureMethodCall has been deprecated for removal
    in favor of the new rule UnusedReturnValue.

🐛️ Fixed Issues

  • apex
    • #6478: [apex] Parser error when using CALENDAR_YEAR() in SOQL
    • #6887: [apex] ParseException on Summer '26 multiline string literals ('''...''')
  • apex-bestpractices
    • #5904: [apex] ApexUnitTestShouldNotUseSeeAllDataTrue violation range should only be the annotation and not the entire test method
  • java
    • #5041: [java] Parsing failed in ParseLock#doParse(): IndexOutOfBoundsException
    • #6010: [java] java.lang.OutOfMemoryError: Java heap space when accessing big Jar files with PMD 7
    • #6374: [java] Support Java 27
    • #6768: [java] Disambiguation IllegalStateException resolving a synthesized record accessor used as a call argument alongside an anonymous class
    • #6932: [java] AssertionError when outer class is parsed before inner class with conflicting visibility
  • java-bestpractices
    • #1237: [java] AbstractClassWithoutAnyMethod: False positive for empty subclasses that inherit methods
    • #1287: [java] GuardLogStatement: False positive when using negative guard conditions
    • #2033: [jsp] NoClassAttribute: False positive for jsp:useBean
    • #5514: [java] ExhaustiveSwitchHasDefault: False positive for non-exhaustive switch statements
    • #5670: [java] ExhaustiveSwitchHasDefault: False positive with final fields not initialized in constructor
    • #6200: [java] UnusedAssignment: False positive about the ++ unary operator
    • #6393: [java] UnusedPrivateMethod: False positive with overloaded private methods called with values returned from methods of an unresolved type
    • #6611: [java] UnnecessaryVarargsArrayCreation: False positive when removing the array creates overload ambiguity
    • #6965: [java] AbstractClassWithoutAnyMethod: False Positive on derived abstract class
  • java-codestyle
    • #2974: [java] Merge rules about protected in final class (AvoidProtectedFieldInFinalClass, AvoidProtectedMethodInFinalClassNotExtending)
    • #5441: [java] UseDiamondOperator: False positive with interdependent generic vars
    • #6958: [java] BooleanGetMethodName should have the option to treat boolean wrapper type differently
    • #6274: [java] UselessParentheses: False positive in ternary else expression
    • #6651: [java] UnnecessaryImport: False positive when Javadoc {@link} references an array type
    • #6709: [java] LambdaCanBeMethodReference: False positive with array creation containing constructor call in receiver
    • #6737: [java] TooManyStaticImports: @SuppressWarnings("PMD.TooManyStaticImports") has stopped working
    • #6846: [java] VariableDeclarationUsageDistance: False positive with variables grouped at the top of a block
    • #6867: [java] UnnecessaryFullyQualifiedName: ContextedAssertionError: This should be unreachable: unknown constant ScopeInfo: MODULE_IMPORT
    • #6943: [java] UnnecessaryCast: False positives related to generics
  • java-design
    • #6714: [java] Rename UseUtilityClass to InstantiableUtilityClass
    • #6844: [java] AvoidThrowingNewInstanceOfSameException: message inconsistent with logic
    • #6881: [java] CognitiveComplexity does not count switch expressions
    • #6925: [java] ImmutableField: False positive on picocli annotated fields
  • java-documentation
    • [#6270](https://g...
Read more

Contributors

  • @stateless
  • @dhalperi
  • @zbynek
  • @slovdahl
  • @adangel
  • @kelunik
  • @stokpop
  • @amirdeljouyi
  • @UncleOwen
  • @arimu1
  • @DragonFSKY
  • @hexonal
  • @fudianchn
  • @lukasgraef
  • @Scrates1
  • @onetuks
  • @Eljees
  • @subotac
  • @AzazelSensei
  • @kureist
  • @renechoi
  • @Will-6543
  • @harshitsinha11
  • @tarann26
  • @dweep-js
  • @legacynode
  • @ColumbusLabs
stateless, dhalperi, and 25 other contributors
Assets 10
Loading

Uh oh!

There was an error while loading. Please reload this page.

itzonevn reacted with hooray emoji
All reactions
  • 🎉 1 reaction
1 person reacted

PMD 7.26.0 (29-June-2026)

PMD 7.26.0 (29-June-2026)
@pmd-actions-helper pmd-actions-helper released this 29 Jun 09:27
pmd_releases/7.26.0
This tag was signed with the committer’s verified signature. The key has expired.
adangel Andreas Dangel
GPG key ID: 93450DF2DF9A3FA3
Expired
Verified
Learn about vigilant mode.
8fd38ed
This commit was signed with the committer’s verified signature. The key has expired.
adangel Andreas Dangel
GPG key ID: 93450DF2DF9A3FA3
Expired
Verified
Learn about vigilant mode.

29-June-2026 - 7.26.0

The PMD team is pleased to announce PMD 7.26.0.

This is a minor release.

Table Of Contents

  • 🚀️ New and noteworthy
    • Swift Changes
    • Updated PMD Designer
  • 🌟️ New and Changed Rules
    • New Rules
    • Deprecated Rules
  • 🐛️ Fixed Issues
  • 🚨️ API Changes
  • ✨️ Merged pull requests
  • 📦️ Dependency updates
  • 📈️ Stats

🚀️ New and noteworthy

Swift Changes

The Swift parser now forwards syntax errors as usual processing errors. Before it just logged any errors and
tried to move on, resulting in an incomplete AST with error nodes. As part of this change, the grammar has been
slightly improved around macro declarations, generic parameters and parameter packs.
This means that PMD might fail now on Swift files with processing errors, when it previously ran without
obvious problems. The Swift module in PMD now behaves like other modules in regard to error handling.

Updated PMD Designer

This PMD release ships a new version of the pmd-designer.
For the changes, see PMD Designer Changelog (7.19.3).

🌟️ New and Changed Rules

New Rules

  • The new Java rule WrongTestAnnotation detects when test annotations from the wrong
    testing framework (JUnit 4, JUnit Jupiter, or TestNG) are used in your code, preventing tests from being silently
    skipped due to framework mismatches. This helps avoid the silent failure where tests compile but don't execute
    because the test runner doesn't recognize the annotation.
  • The new Java rule AssertEqualsArgumentOrder detects assertions
    where the expected and actual arguments were swapped. This helps find assertions
    that are producing a confusing error message when they fail.
  • The new Kotlin rule LocalVariableShadowsParameter detects local variable
    declarations that use the same name as a parameter of the enclosing function. This shadows the parameter
    and may lead to confusion about which value is used.
  • The new Apex rule InvocableClassNoArgConstructor detects classes that use
    @InvocableVariable properties, but that don't provide a no-arg constructor. Without such a constructor,
    runtime exception occur when Salesforce Flow tries to instantiate such classes.

Deprecated Rules

  • The rule UseObjectForClearerAPI was deprecated. Use ExcessiveParameterList
    instead. The old rule name still works.

🐛️ Fixed Issues

  • apex
    • #6806: [apex] ANTLR runtime mismatch 4.9.1 used for code generation does not match the current runtime version 4.13.2
  • apex-errorprone
    • #6793: [apex] New Rule: Invocable Classes require a no argument constructor
  • apex-security
    • #2955: [apex] ApexSOQLInjection: False positive when passing local var with concatenating strings
    • #3877: [apex] ApexCRUDViolation: False positive with Lists of Objects with getSObjectType().getDescribe()
  • core
    • #6764: [core] ANTLR: Report syntax errors as processing errors
  • cpp
    • #6641: [cpp]: IndexOutOfBoundsException in CPD when a duplication is at end of file with UTF8-BOM
  • cli
    • #6741: [cli] Designer: Fix quotes in PMD_OPENJFX_MODULE_PATH setting
  • java
    • #6812: [java] Rename ASTMethodDeclaration#isOverridden() to isOverride()
  • java-bestpractices
    • #6627: [java] UnusedPrivateMethod: could not handle javax.annotation
    • #6692: [java] ForLoopCanBeForeach: inconsistent detection between i += 1 and i = i + 1 update forms
    • #6736: [java] JUnitJupiterTestShouldBePackagePrivate: False negative when the only tests are in a @Nested class
    • #6782: [java] UseStandardCharsets: ArrayIndexOutOfBoundsException in line 81
  • java-codestyle
    • #6239: [java] UseDiamondOperator: False positive with Guice TypeLiteral
    • #6775: [java] UselessParentheses: False negative when on the right-hand side of an assignment statement
  • java-design
    • #3741: [java] Deprecate UseObjectForClearerAPI
    • #6459: [java] PublicMemberInNonPublicType: False positive for main(...) methods
    • #6460: [java] PublicMemberInNonPublicType: False negative for overridden methods
    • #6814: [java] AvoidDeepNestedIfStmts: count ifs properly in else branch
  • java-errorprone
    • #2846: [java] New Rule: WrongTestAnnotation
    • #5011: [java] TestClassWithoutTestCases: False positive for test classes extending a class with tests (in nested classes)
    • #6743: [java] CloseResource: False positive for closeable initialized with (T) null
    • #6781: [java] UselessPureMethodCall: False positive for Stream.forEach
  • java-performance
    • #6740: [java] OptimizableToArrayCall: False positive when new T[0x0] is used instead of new T[0]
  • kotlin
    • #6677: [kotlin] Add auxClasspath language property
  • kotlin-bestpractices
    • #6732: [kotlin] New Rule: LocalVariableShadowsParameter
  • swift
    • #6801: [swift] Report syntax errors as processing errors

🚨️ API Changes

  • core
    • AntlrBaseParser has been deprecated in favor of
      AntlrBaseParserWithErrorHandling, which converts ANTLR's parsing
      errors into PMD's processing errors by default.
  • java
    • ASTMethodDeclaration#isOverridden has been renamed to isOverride.
      The old name has been deprecated and will remain available until PMD 8.
      The corresponding XPath attribute @Overridden is deprecated as well. Use @Override instead.

✨️ Merged pull requests

  • #6678: [kotlin] Fix #6677: Add auxClasspath language property - Peter Paul Bakker (@stokpop)
  • #6703: [cpp] Fix #6641: CPD: IndexOutOfBoundsException when a duplication is at end of file with UTF8-BOM - Lukas Gräf (@lukasgraef)
  • #6713: [java] New rule: AssertEqualsArgumentOrder - Zbynek Konecny (@zbynek)
  • #6727: [java] Fix #6692: ForLoopCanBeForeach detect i = i + 1 update form - hyeonjune (@qwerty7878)
  • #6728: chore: Fix pmd test setup - Andreas Dangel (@adangel)
  • #6730: [core] RuleSetWriter: fix indent-number attribute - Andreas Dangel (@adangel)
  • #6733: [kotlin] Fix #6732: Add LocalVariableShadowsParameter rule - Peter Paul Bakker (@stokpop)
  • #6735: [java] Fix #2846: New Rule: WrongTestAnnotation - Sören Glimm (@UncleOwen)
  • #6738: [java] Fix #6736: Add JTypeMirror.streamClasses() - Sören Glimm (@UncleOwen)
  • #6741: [cli] Designer: Fix quotes in PMD_OPENJFX_MODULE_PATH setting - Philip Graf (@acanda)
  • #6745: [java] Fix #6239: UseDiamondOperator: Implement heuristic for Super Type Token Pattern - Sören Glimm (@UncleOwen)
  • #6748: [java] Fix #6743: CloseResource: False positive for closeable initialized with (T) null - Lukas Gräf (@lukasgraef)
  • [#6761](https://github.com/pmd/pmd/p...
Read more

Contributors

  • @acanda
  • @zbynek
  • @adangel
  • @FishOfPrey
  • @stokpop
  • @UncleOwen
  • @lukman48
  • @lukasgraef
  • @qwerty7878
  • @dweep-js
acanda, zbynek, and 8 other contributors
Assets 10
Loading

Uh oh!

There was an error while loading. Please reload this page.

All reactions

PMD 7.25.0 (29-May-2026)

PMD 7.25.0 (29-May-2026)
@pmd-actions-helper pmd-actions-helper released this 29 May 07:31
pmd_releases/7.25.0
This tag was signed with the committer’s verified signature. The key has expired.
adangel Andreas Dangel
GPG key ID: 93450DF2DF9A3FA3
Expired
Verified
Learn about vigilant mode.
418f8b7
This commit was signed with the committer’s verified signature. The key has expired.
adangel Andreas Dangel
GPG key ID: 93450DF2DF9A3FA3
Expired
Verified
Learn about vigilant mode.

29-May-2026 - 7.25.0

The PMD team is pleased to announce PMD 7.25.0.

This is a minor release.

Table Of Contents

  • 🚀️ New and noteworthy
    • Updated ANTLR library to 4.13.2
  • 🌟️ New and Changed Rules
    • New Rules
    • Changed Rules
    • Renamed rules and properties
  • 🐛️ Fixed Issues
  • 🚨️ API Changes
    • Deprecations
    • Experimental API
  • ✨️ Merged pull requests
  • 📦️ Dependency updates
  • 📈️ Stats

🚀️ New and noteworthy

Updated ANTLR library to 4.13.2

We have updated the ANTLR library (parser generator) from 4.9.3 to the latest version 4.13.2,
in order to be able to use the latest version of Apex parser library.

This is an incompatible update: In case you use custom language modules based on ANTLR, you
need to make sure to regenerate all of your lexers and parsers with the new ANTLR version.

For the ANTLR based language modules, that PMD ships (kotlin and swift and various CPD modules),
this is already done.

🌟️ New and Changed Rules

New Rules

  • The new Java rule JUnitJupiterTestNoPrivateModifier find JUnit test classes and
    methods that are private. Test classes, test methods, and lifecycle methods are not required to be public,
    but they must not be private. Otherwise, they won’t be found by the test framework.
  • The new Java rule UnnecessaryBlock reports blocks that are unnecessary as
    they don't introduce a new scope. This rule helps simplify code structure by identifying and flagging
    redundant blocks that can make code harder to read and may be misleading.
  • The new Java rule VariableDeclarationUsageDistance flags local variables that are declared
    far from their usage, which can make code harder to read. The rule has a property maxDistance that allows to
    configure the maximum allowed distance between declaration and usage.
  • The new Java rule AssertStatementInTest detects usages of assert statement in tests.
    These should be replaced by framework assertion methods such as assertEquals.
    Such methods provide better error messages and make test behave correctly when running without -ea.

Changed Rules

  • The rule OnlyOneReturn has a new property allowGuardIfs. When this property is
    true, then guard ifs at the beginning of a method are allowed their return statements don't count.
  • The rules UseUtilityClass and ClassNamingConventions now use the
    same definition of what a utility class is. The most significant change is, that classes with main() methods are
    no longer considered utility classes by UseUtilityClass.
  • We are continuously working to improve the precision of violation reporting for various rules.
    The goal is to ensure that rules report issues on the correct line and highlight only the relevant lines.
    For example, instead of flagging an entire class declaration (including its body), we now generally report only
    the class name. For more details, see [java] Single Line Warnings #730
    and [java] Review reported locations of rules #3769. While this effort
    is still ongoing, the following Java rules have been updated in this release:
    • AbstractClassWithoutAbstractMethod
    • AbstractClassWithoutAnyMethod
    • AtLeastOneConstructor
    • AvoidDollarSigns
    • AvoidCatchingGenericException
    • AvoidSynchronizedStatement (now reports only on synchronized keyword and not the whole synchronized block)
    • ClassNamingConventions
    • ClassWithOnlyPrivateConstructorsShouldBeFinal
    • CommentDefaultAccessModifier
    • CommentRequired
    • CouplingBetweenObjects (now reports only on class identifier and not whole compilation unit anymore)
    • CyclomaticComplexity
    • DataClass
    • ExcessiveImports (now reports only on imports and not the whole compilation unit anymore)
    • ExcessiveParameterList
    • ExcessivePublicCount
    • ExhaustiveSwitchHasDefault (now reports only on switch keyword and not the whole switch block)
    • GodClass
    • ImplicitFunctionalInterface
    • JUnit5TestShouldBePackagePrivate
    • LocalHomeNamingConvention
    • LocalInterfaceSessionNamingConvention
    • MissingSerialVersionUID
    • MissingStaticMethodInNonInstantiatableClass
    • NcssCount
    • NonExhaustiveSwitch (now reports only on switch keyword and not the whole switch block)
    • NoPackage
    • PublicMemberInNonPublicType
    • ShortClassName
    • SingleMethodSingleton
    • SwitchDensity (now reports only on switch keyword and not the whole switch block)
    • TestClassWithoutTestCases
    • TooFewBranchesForSwitch (now reports only on switch keyword and not the whole switch block)
    • TooManyFields (now reports only on class identifier and not the whole class body anymore)
    • TooManyMethods (now reports only on class identifier and not the whole class body anymore)
    • TooManyStaticImports (now reports only on the first static import and not the whole compilation unit anymore)
    • UnnecessaryModifier
    • UseUtilityClass

Renamed rules and properties

  • One rule and one property have been renamed to reflect the fact that they work for both JUnit 5 and 6:
    • The rule JUnitJupiterTestShouldBePackagePrivate (Java Best Practices) was re...
Read more

Contributors

  • @zbynek
  • @slovdahl
  • @adangel
  • @stokpop
  • @UncleOwen
  • @lukasgraef
  • @leemeii
  • @vip892766gma
zbynek, slovdahl, and 6 other contributors
Assets 10
Loading

Uh oh!

There was an error while loading. Please reload this page.

stokpop and vincent290587 reacted with hooray emoji
All reactions
  • 🎉 2 reactions
2 people reacted

PMD 7.24.0 (24-April-2026)

PMD 7.24.0 (24-April-2026)
@pmd-actions-helper pmd-actions-helper released this 24 Apr 10:32
pmd_releases/7.24.0
This tag was signed with the committer’s verified signature. The key has expired.
adangel Andreas Dangel
GPG key ID: 93450DF2DF9A3FA3
Expired
Verified
Learn about vigilant mode.
e9787d8
This commit was signed with the committer’s verified signature. The key has expired.
adangel Andreas Dangel
GPG key ID: 93450DF2DF9A3FA3
Expired
Verified
Learn about vigilant mode.

24-April-2026 - 7.24.0

The PMD team is pleased to announce PMD 7.24.0.

This is a minor release.

Table Of Contents

  • 🌟️ New Rules
  • 🐛️ Fixed Issues
  • ✨️ Merged pull requests
  • 📦️ Dependency updates
  • 📈️ Stats

🌟️ New Rules

  • The new Apex rule AvoidInterfaceAsMapKey reports Map declarations
    (fields, variables, parameters) whose key type is an interface that has at least one abstract implementing
    class defining equals or hashCode. Using such maps results in potentially duplicated map entries or
    not being able to get entries by key.
  • The new Java rule OverridingThreadRun finds overridden Thread::run methods.
    This is not recommended. Instead, implement Runnable and pass an instance to the thread constructor.

🐛️ Fixed Issues

  • apex
    • #5386: [apex] Apex files ending in "Test" are skipped with a number of rules
  • apex-errorprone
    • #6492: [apex] New rule: Prevent use of interface -> abstract class with equals/hashCode as key in Map
  • apex-security
    • #5385: [apex] ApexCRUDViolation not reported even if SOQL doesn't have permissions check on it
  • java-bestpractices
    • #4272: [java] JUnitTestsShouldIncludeAssert: False positive with assert in lambda
  • java-multithreading
    • #595: [java] New rule: Implement Runnable instead of extending Thread
  • kotlin
    • #6003: [kotlin] Support multidollar interpolation (Kotlin 2.2)

✨️ Merged pull requests

  • #6493: [apex] New Rule: AvoidInterfaceAsMapKeyRule - Jonny Alexander Power (@JonnyPower)
  • #6497: [kotlin] Fix kotlin grammar for parsing multidollar interpolation - Peter Paul Bakker (@stokpop)
  • #6555: [java] New rule: OverridingThreadRun to prefer using Runnable - Zbynek Konecny (@zbynek)
  • #6556: [java] Fix #4272: False positive in UnitTestShouldIncludeAssert when using assertion in lambda - Lukas Gräf (@lukasgraef)
  • #6563: [apex] Remove class name suffix "Test" as indicator of test classes - David Schach (@dschach)
  • #6576: [test] chore: Throw a TestAbortedException on disabled tests - UncleOwen (@UncleOwen)
  • #6577: [dist] chore: Improve error message for missing JAVA_HOME in AntIT.java - UncleOwen (@UncleOwen)
  • #6607: [doc] basic.xml has been gone for a long time - UncleOwen (@UncleOwen)

📦️ Dependency updates

  • #6515: chore: bump pmd-regression-tester from 1.6.2 to 1.7.0
  • #6552: Bump PMD from 7.22.0 to 7.23.0
  • #6564: chore(deps): bump ruby/setup-ruby from 1.295.0 to 1.299.0
  • #6565: chore(deps-dev): bump net.bytebuddy:byte-buddy from 1.18.7 to 1.18.8
  • #6566: chore(deps): bump com.puppycrawl.tools:checkstyle from 13.3.0 to 13.4.0
  • #6567: chore(deps-dev): bump log4j.version from 2.25.3 to 2.25.4
  • #6569: chore(deps-dev): bump net.bytebuddy:byte-buddy-agent from 1.18.7 to 1.18.8
  • #6570: chore(deps): bump org.apache.groovy:groovy from 5.0.4 to 5.0.5
  • #6571: chore(deps-dev): bump io.github.git-commit-id:git-commit-id-maven-plugin from 9.0.2 to 9.1.0
  • #6572: chore(deps): bump bigdecimal from 4.0.1 to 4.1.0 in /docs
  • #6578: chore(deps): bump marocchino/sticky-pull-request-comment from 3.0.2 to 3.0.3
  • #6579: chore(deps): bump crate-ci/typos from 1.44.0 to 1.45.0
  • #6580: chore(deps): bump ruby/setup-ruby from 1.299.0 to 1.300.0
  • #6581: chore(deps-dev): bump io.github.git-commit-id:git-commit-id-maven-plugin from 9.1.0 to 10.0.0
  • #6582: chore(deps): bump org.checkerframework:checker-qual from 3.54.0 to 4.0.0
  • #6583: chore(deps-dev): bump ant.version from 1.10.15 to 1.10.16
  • #6584: chore(deps): bump bigdecimal from 4.1.0 to 4.1.1 in /docs
  • #6588: chore(deps): bump actions/cache from 5.0.4 to 5.0.5
  • #6589: chore(deps): bump marocchino/sticky-pull-request-comment from 3.0.3 to 3.0.4
  • #6590: chore(deps): bump crate-ci/typos from 1.45.0 to 1.45.1
  • #6591: chore(deps): bump actions/upload-artifact from 7.0.0 to 7.0.1
  • #6592: chore(deps): bump actions/create-github-app-token from 3.0.0 to 3.1.1
  • #6593: chore(deps): bump scalameta.version from 4.15.2 to 4.16.0
  • #6594: chore(deps): bump com.github.siom79.japicmp:japicmp-maven-plugin from 0.25.4 to 0.25.5
  • #6595: chore(deps-dev): bump com.google.guava:guava from 33.5.0-jre to 33.6.0-jre
  • #6596: chore(deps-dev): bump ant.version from 1.10.16 to 1.10.17
  • #6599: chore(deps-dev): Bump lodash from 4.17.23 to 4.18.1
  • #6600: chore(deps-dev): Bump addressable from 2.8.9 to 2.9.0
  • #6613: chore(deps): bump ruby/setup-ruby from 1.300.0 to 1.305.0
  • #6614: chore(deps): bump com.github.siom79.japicmp:japicmp-maven-plugin from 0.25.5 to 0.25.6
  • #6615: chore(deps): bump scalameta.version from 4.16.0 to 4.16.1
  • #6616: chore(deps-dev): bump org.sonarsource.scanner.maven:sonar-maven-plugin from 5.5.0.6356 to 5.6.0.6792
  • #6617: chore(deps): bump org.jsoup:jsoup from 1.22.1 to 1.22.2
  • #6618: chore(deps): bump bigdecimal from 4.1.1 to 4.1.2 in /docs

📈️ Stats

  • 82 commits
  • 14 closed tickets & PRs
  • Days since last release: 27

Contributors

  • @dschach
  • @zbynek
  • @JonnyPower
  • @stokpop
  • @UncleOwen
  • @lukasgraef
dschach, zbynek, and 4 other contributors
Assets 10
Loading

Uh oh!

There was an error while loading. Please reload this page.

stokpop reacted with hooray emoji litetex reacted with rocket emoji
All reactions
  • 🎉 1 reaction
  • 🚀 1 reaction
2 people reacted

PMD 7.23.0 (27-March-2026)

PMD 7.23.0 (27-March-2026)
@pmd-actions-helper pmd-actions-helper released this 27 Mar 11:16
pmd_releases/7.23.0
This tag was signed with the committer’s verified signature. The key has expired.
adangel Andreas Dangel
GPG key ID: 93450DF2DF9A3FA3
Expired
Verified
Learn about vigilant mode.
8562692
This commit was signed with the committer’s verified signature. The key has expired.
adangel Andreas Dangel
GPG key ID: 93450DF2DF9A3FA3
Expired
Verified
Learn about vigilant mode.

27-March-2026 - 7.23.0

The PMD team is pleased to announce PMD 7.23.0.

This is a minor release.

Table Of Contents

  • 🐛️ Fixed Issues
  • ✨️ Merged pull requests
  • 📦️ Dependency updates
  • 📈️ Stats

🐛️ Fixed Issues

  • core
    • #6503: [core] Links in HTML report are broken
  • java-errorprone
    • #6502: [java] CloseResource: False positive for allowedResourceMethodPatterns entries when using unqualified method calls
  • java-security
    • #6531: [java] InsecureCryptoIv: False negative with fixed IVs from array initializers

✨️ Merged pull requests

  • #6467: [ci] Use typos gh-action - Andreas Dangel (@adangel)
  • #6488: [doc] Update security.md for CVE-2026-28338 - Andreas Dangel (@adangel)
  • #6489: [doc] CPD: document --report-file parameter - Andreas Dangel (@adangel)
  • #6504: [core] Fix #6503: Don't escape externalInfoUrl in reports - Andreas Dangel (@adangel)
  • #6505: [java] Fix #6502: CloseResource should consider unqualified method calls - Andreas Dangel (@adangel)
  • #6545: [java] Fix #6531: False negative in InsecureCryptoIv with array initializers - Zbynek Konecny (@zbynek)

📦️ Dependency updates

  • #6476: Bump PMD from 7.21.0 to 7.22.0
  • #6479: chore(deps): bump actions/download-artifact from 7.0.0 to 8.0.0
  • #6480: chore(deps): bump actions/upload-artifact from 6.0.0 to 7.0.0
  • #6481: chore(deps): bump com.puppycrawl.tools:checkstyle from 13.2.0 to 13.3.0
  • #6482: chore(deps): bump org.mockito:mockito-core from 5.21.0 to 5.22.0
  • #6483: chore(deps-dev): bump net.bytebuddy:byte-buddy from 1.18.5 to 1.18.7
  • #6484: chore(deps): bump org.yaml:snakeyaml from 2.5 to 2.6
  • #6485: chore(deps): bump org.checkerframework:checker-qual from 3.53.1 to 3.54.0
  • #6486: chore(deps-dev): bump net.bytebuddy:byte-buddy-agent from 1.18.5 to 1.18.7
  • #6487: chore(deps): bump com.google.protobuf:protobuf-java from 4.33.5 to 4.34.0
  • #6490: chore: Update gems, remove github-pages
  • #6498: chore(deps): bump ruby/setup-ruby from 1.288.0 to 1.290.0
  • #6499: chore(deps-dev): bump commons-logging:commons-logging from 1.3.5 to 1.3.6
  • #6500: chore(deps-dev): bump org.apache.maven.plugins:maven-shade-plugin from 3.6.1 to 3.6.2
  • #6501: chore(deps): bump org.apache.maven.plugins:maven-resources-plugin from 3.4.0 to 3.5.0
  • #6506: chore(deps): bump actions/create-github-app-token from 2.2.1 to 3.0.0
  • #6507: chore(deps): bump actions/download-artifact from 8.0.0 to 8.0.1
  • #6508: chore(deps): bump marocchino/sticky-pull-request-comment from 2.9.4 to 3.0.2
  • #6509: chore(deps): bump ruby/setup-ruby from 1.290.0 to 1.295.0
  • #6511: chore(deps): bump org.mockito:mockito-core from 5.22.0 to 5.23.0
  • #6514: chore: bump maven from 3.9.12 to 3.9.14
  • #6516: chore: bump json from 2.19.0 to 2.19.2
  • #6548: chore(deps): bump actions/cache from 5.0.3 to 5.0.4
  • #6549: chore(deps): bump com.google.protobuf:protobuf-java from 4.34.0 to 4.34.1
  • #6551: chore: use ruby4

📈️ Stats

  • 38 commits
  • 9 closed tickets & PRs
  • Days since last release: 27

Contributors

  • @zbynek
  • @adangel
zbynek and adangel
Assets 10
Loading

Uh oh!

There was an error while loading. Please reload this page.

janderssonse and asnkunv reacted with thumbs up emoji
All reactions
  • 👍 2 reactions
2 people reacted

PMD 7.22.0 (27-February-2026)

PMD 7.22.0 (27-February-2026)
@pmd-actions-helper pmd-actions-helper released this 27 Feb 12:03
pmd_releases/7.22.0
This tag was signed with the committer’s verified signature. The key has expired.
adangel Andreas Dangel
GPG key ID: 93450DF2DF9A3FA3
Expired
Verified
Learn about vigilant mode.
7f74d77
This commit was signed with the committer’s verified signature. The key has expired.
adangel Andreas Dangel
GPG key ID: 93450DF2DF9A3FA3
Expired
Verified
Learn about vigilant mode.

27-February-2026 - 7.22.0

The PMD team is pleased to announce PMD 7.22.0.

This is a minor release.

Table Of Contents

  • 🚀️ New and noteworthy
    • Security fixes
  • 🌟️ New and Changed Rules
    • New Rules
    • Changed Rules
  • 🐛️ Fixed Issues
  • 🚨️ API Changes
    • Deprecations
  • ✨️ Merged pull requests
  • 📦️ Dependency updates
  • 📈️ Stats

🚀️ New and noteworthy

Security fixes

  • This release fixes a stored XSS vulnerability in VBHTMLRenderer and YAHTMLRenderer via unescaped violation messages.
    Affects CI/CD pipelines that run PMD with --format vbhtml or --format yahtml on untrusted source code
    (e.g. pull requests from external contributors) and expose the HTML report as a build artifact.
    JavaScript executes in the browser context of anyone who opens the report.
    Note: The default html format is not affected by unescaped violation messages, but a similar problem
    existed with suppressed violation markers.
    If you use these reports, it is recommended to upgrade PMD.
    Reported by Smaran Chand (@smaranchand).

🌟️ New and Changed Rules

New Rules

  • The new Java rule UnnecessaryInterfaceDeclaration detects classes that
    implement interfaces that are already implemented by its superclass, and interfaces
    that extend other interfaces already declared by their superinterfaces.
    These declarations are redundant and can be removed to simplify the code.

Changed Rules

  • The rule CloseResource introduces a new property, allowedResourceMethodPatterns,
    which lets you specify method invocation patterns whose return values are resources managed externally.
    This is useful for ignoring managed resources - for example, Reader/Writer instances obtained from
    HttpServletRequest/HttpServletResponse - because the servlet container, not application code,
    is responsible for closing them. By default, the rule ignores InputStream/OutputStream/Reader/Writer
    resources returned by methods on (Http)ServletRequest and (Http)ServletResponse
    (both javax.servlet and jakarta.servlet).

🐛️ Fixed Issues

  • core
    • #6471: [core] BaseAntlrTerminalNode should return type instead of index for getTokenKind()
    • #6475: [core] Fix stored XSS in VBHTMLRenderer and YAHTMLRenderer
  • doc
    • #6396: [doc] Mention test-pmd-tool as alternative for testing
  • java-bestpractices
    • #6431: [java] UnitTestShouldIncludeAssert: False positive with SoftAssertionsExtension on parent/grandparent classes
  • java-codestyle
    • #6458: [java] New Rule: UnnecessaryInterfaceDeclaration
  • java-errorprone
    • #5787: [java] InvalidLogMessageFormat: False positive with lombok @Value generated methods
    • #6436: [java] CloseResource: Allow to ignore managed resources

🚨️ API Changes

Deprecations

  • core
    • CodeClimateIssue: This class is an implementation detail of
      CodeClimateRenderer. It will be internalized in a future release.
  • visualforce
    • DataType. The enum constants have been renamed to follow Java naming
      conventions. The old enum constants are deprecated and should no longer be used.
      The method DataType#fromString will return the new
      enum constants.
      Use DataType#fieldTypeNameOf to get the original field type name.

✨️ Merged pull requests

  • #6396: [doc] Mention test-pmd-tool as alternative for testing - Beech Horn (@metalshark)
  • #6397: [java] Add support for Lombok-generated getters in symbol resolution - Anurag Agarwal (@altaiezior)
  • #6420: [ci] build: Add typos as spell checker - Andreas Dangel (@adangel)
  • #6432: [java] UnitTestShouldIncludeAssert: False positive with SoftAssertionsExtension on parent/grandparent classes - Artur Kalimullin (@kaliy)
  • #6434: [java] chore(style): Fix lambda argument indentation for checkstyle compliance - Kai (@aclfe)
  • #6437: [java] CloseResource: Allow to ignore managed resources - Gildas Cuisinier (@gcuisinier)
  • #6445: chore: Fix FieldNamingConventions - Andreas Dangel (@adangel)
  • #6446: [doc] Add new IntelliJ Plugin "PMD X" - Andreas Dangel (@adangel)
  • #6447: chore: Small release process fixes - Andreas Dangel (@adangel)
  • #6458: [java] New Rule: UnnecessaryInterfaceDeclaration - Zbynek Konecny (@zbynek)
  • #6472: [core] Fix BaseAntlrTerminalNode getTokenKind to return type instead of index - Peter Paul Bakker (@stokpop)
  • #6475: [core] Fix stored XSS in VBHTMLRenderer and YAHTMLRenderer - Andreas Dangel (@adangel)

📦️ Dependency updates

  • #6433: Bump PMD from 7.20.0 to 7.21.0
  • #6438: chore(deps): bump actions/cache from 5.0.2 to 5.0.3
  • #6439: chore(deps): bump ruby/setup-ruby from 1.286.0 to 1.288.0
  • #6440: chore(deps): bump scalameta.version from 4.14.6 to 4.14.7
  • #6441: chore(deps): bump org.apache.maven.plugins:maven-compiler-plugin from 3.14.1 to 3.15.0
  • #6442: chore(deps): bump org.checkerframework:checker-qual from 3.53.0 to 3.53.1
  • #6443: chore(deps): bump com.puppycrawl.tools:checkstyle from 13.0.0 to 13.1.0
  • #6444: chore(deps): bump com.google.protobuf:protobuf-java from 4.33.4 to 4.33.5
  • #6452: chore(deps): bump actions/checkout from 6.0.1 to 6.0.2
  • #6455: chore(deps): bump org.apache.maven.plugins:maven-dependency-plugin from 3.9.0 to 3.10.0
  • #6456: chore(deps): bump com.puppycrawl.tools:checkstyle from 13.1.0 to 13.2.0
  • #6462: chore(deps): bump junit.version from 6.0.2 to 6.0.3
  • #6463: chore(deps): bump scalameta.version from 4.14.7 to 4.15.2
  • #6465: chore(deps-dev): bump net.bytebuddy:byte-buddy-agent from 1.18.4 to 1.18.5
  • #6468: chore(deps-dev): bump net.bytebuddy:byte-buddy from 1.18.4 to 1.18.5
  • #6469: chore(deps): bump surefire.version from 3.5.4 to 3.5.5
  • #6470: chore(deps): bump org.jetbrains:annotations from 26.0.2-1 to 26.1.0
  • #6473: chore(deps): bump nokogiri to 1.19.1
  • #6474: chore(deps): bump faraday from 2.13.3 to 2.14.1

📈️ Stats

  • 66 commits
  • 16 closed tickets & PRs
  • Days since last release: 28

Contributors

  • @gcuisinier
  • @metalshark
  • @kaliy
  • @zbynek
  • @adangel
  • @altaiezior
  • @stokpop
  • @smaranchand
  • @aclfe
gcuisinier, metalshark, and 7 other contributors
Assets 10
Loading

Uh oh!

There was an error while loading. Please reload this page.

itzonevn, guoyipeng-chi, panagiotisbellias, and wishvtz reacted with thumbs up emoji
All reactions
  • 👍 4 reactions
4 people reacted
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.