Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Mar 22, 2024

This PR contains the following updates:

Package Change Age Confidence
pmd (source) 6.55.07.21.0 age confidence

Release Notes

pmd/pmd (pmd)

v7.21.0: PMD 7.21.0 (30-January-2026)

30-January-2026 - 7.21.0

The PMD team is pleased to announce PMD 7.21.0.

This is a minor release.

Table Of Contents
🚀️ New and noteworthy
🚀️ New: Java 26 Support

This release of PMD brings support for Java 26.

There are no new standard language features.

There is one preview language feature:

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

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

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

Build Requirement is Java 21

From now on, Java 21 or newer is required to build PMD. PMD itself still remains compatible with Java 8,
so that it still can be used in a pure Java 8 environment. This allows us to use the latest
checkstyle version during the build.

CPD
🌟️ New and Changed Rules
New Rules
  • The new Java rule PublicMemberInNonPublicType detects public members (such as methods
    or fields) within non-public types. Non-public types should not declare public members, as their effective
    visibility is limited, and using the public modifier can create confusion.
  • The new Java rule UnsupportedJdkApiUsage flags the use of unsupported and non-portable
    JDK APIs, including sun.* packages, sun.misc.Unsafe, and jdk.internal.misc.Unsafe. These APIs are unstable,
    intended for internal use, and may change or be removed. The rule complements Java compiler warnings by
    highlighting such usage during code reviews and encouraging migration to official APIs like VarHandle and
    the Foreign Function & Memory API.
Changed Rules

The following rules have been changed to use a consistent implementation of enum based
rule properties:

  • The property checkAddressTypes of rule AvoidUsingHardCodedIP has changed:
    • Instead of IPv4 use ipv4
    • Instead of IPv6 use ipv6
    • Instead of IPv4 mapped IPv6 use ipv4MappedIpv6
    • The old values still work, but you'll see a deprecation warning.
  • The property nullCheckBranch of rule ConfusingTernary has changed:
    • Instead of Any use any
    • Instead of Then use then
    • Instead of Else use else
    • The old values still work, but you'll see a deprecation warning.
  • The property typeAnnotations of rule ModifierOrder has changed:
    • Instead of ontype use onType
    • Instead of ondecl use onDecl
    • The old values still work, but you'll see a deprecation warning.
  • The values of the properties of rule CommentRequired have changed:
    • Instead of Required use required
    • Instead of Ignored use ignored
    • Instead of Unwanted use unwanted
    • The old values still work, but you'll see a deprecation warning.
Deprecated Rules
🐛️ Fixed Issues
  • core
    • #​6184: [core] Consistent implementation of enum properties
  • apex
    • #​6417: [apex] Support CPD suppression with "CPD-OFF" & "CPD-ON"
  • apex-codestyle
    • #​6349: [apex] FieldDeclarationsShouldBeAtStart: False positive with properties
  • cli
    • #​6290: [cli] Improve Designer start script
  • java
    • #​5871: [java] Support Java 26
    • #​6364: [java] Parse error with yield lambda inside switch
  • java-design
    • #​6231: [java] New Rule: PublicMemberInNonPublicType
  • java-errorprone
    • #​3601: [java] InvalidLogMessageFormat: False positive when final parameter is Supplier<Throwable>
    • #​5882: [java] UnconditionalIfStatement: False negative when true/false is not literal but local variable
    • #​5923: [java] New Rule: Catch usages of sun.misc.Unsafe or jdk.internal.misc.Unsafe
  • java-performance
    • #​3857: [java] InsufficientStringBufferDeclaration: False negatives with String constants
🚨️ API Changes
Deprecations
✨️ Merged pull requests
📦️ Dependency updates
  • #​6367: Bump PMD from 7.19.0 to 7.20.0
  • #​6369: chore(deps): bump ruby/setup-ruby from 1.275.0 to 1.277.0
  • #​6370: chore(deps): bump org.apache.groovy:groovy from 5.0.2 to 5.0.3
  • #​6371: chore(deps-dev): bump net.bytebuddy:byte-buddy from 1.18.2 to 1.18.3
  • #​6372: chore(deps): bump org.codehaus.mojo:exec-maven-plugin from 3.6.2 to 3.6.3
  • #​6375: chore: Bump maven from 3.9.11 to 3.9.12
  • #​6378: chore(deps): bump ruby/setup-ruby from 1.277.0 to 1.279.0
  • #​6379: chore(deps): bump scalameta.version from 4.14.2 to 4.14.4
  • #​6380: chore(deps): bump junit.version from 6.0.1 to 6.0.2
  • #​6381: chore(deps): bump org.jsoup:jsoup from 1.21.2 to 1.22.1
  • #​6382: chore(deps): bump org.checkerframework:checker-qual from 3.52.1 to 3.53.0
  • #​6383: chore(deps): bump com.puppycrawl.tools:checkstyle from 12.3.0 to 13.0.0
  • #​6385: chore(deps): bump uri from 1.0.3 to 1.0.4 in /docs
  • #​6399: chore(deps): bump ruby/setup-ruby from 1.279.0 to 1.282.0
  • #​6400: chore(deps): bump com.github.siom79.japicmp:japicmp-maven-plugin from 0.25.1 to 0.25.4
  • #​6401: chore(deps): bump org.sonatype.central:central-publishing-maven-plugin from 0.9.0 to 0.10.0
  • #​6403: chore(deps): bump com.google.protobuf:protobuf-java from 4.33.2 to 4.33.4
  • #​6410: chore(deps): bump ruby/setup-ruby from 1.282.0 to 1.285.0
  • #​6411: chore(deps): bump actions/cache from 5.0.1 to 5.0.2
  • #​6412: chore(deps): bump scalameta.version from 4.14.4 to 4.14.5
  • #​6413: chore(deps-dev): bump net.bytebuddy:byte-buddy from 1.18.3 to 1.18.4
  • #​6414: chore(deps-dev): bump org.codehaus.mojo:versions-maven-plugin from 2.20.1 to 2.21.0
  • #​6415: chore(deps-dev): bump net.bytebuddy:byte-buddy-agent from 1.18.3 to 1.18.4
  • #​6419: chore(deps-dev): bump lodash from 4.17.21 to 4.17.23
  • #​6421: chore(deps): bump actions/setup-java from 5.1.0 to 5.2.0
  • #​6422: chore(deps): bump actions/checkout from 6.0.1 to 6.0.2
  • #​6423: chore(deps): bump scalameta.version from 4.14.5 to 4.14.6
  • #​6424: chore(deps-dev): bump org.assertj:assertj-core from 3.27.6 to 3.27.7
  • #​6425: chore(deps): bump org.apache.groovy:groovy from 5.0.3 to 5.0.4
📈️ Stats
  • 146 commits
  • 30 closed tickets & PRs
  • Days since last release: 30

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from BenSartor March 22, 2024 10:21
@renovate renovate bot force-pushed the renovate/pmd-7.x branch from 6b5ddda to 5303ae5 Compare April 26, 2024 09:36
@renovate renovate bot force-pushed the renovate/pmd-7.x branch from 5303ae5 to 39adec4 Compare May 7, 2024 21:35
@renovate renovate bot force-pushed the renovate/pmd-7.x branch 3 times, most recently from f51b9ce to 237558a Compare May 31, 2024 12:13
@renovate renovate bot force-pushed the renovate/pmd-7.x branch 4 times, most recently from be75902 to 1246db9 Compare July 4, 2024 14:23
@renovate renovate bot force-pushed the renovate/pmd-7.x branch 2 times, most recently from 35a706b to fe51798 Compare July 6, 2024 15:05
@renovate renovate bot force-pushed the renovate/pmd-7.x branch 2 times, most recently from e57e71a to 1286f12 Compare July 29, 2024 22:17
@renovate renovate bot force-pushed the renovate/pmd-7.x branch from 1286f12 to 765e953 Compare August 30, 2024 10:35
@renovate renovate bot force-pushed the renovate/pmd-7.x branch from 765e953 to 5fdf0d7 Compare September 13, 2024 13:41
@renovate renovate bot force-pushed the renovate/pmd-7.x branch from 5fdf0d7 to 46c0c2f Compare September 27, 2024 10:20
@renovate renovate bot force-pushed the renovate/pmd-7.x branch 2 times, most recently from 075ee57 to cd7319d Compare October 25, 2024 07:54
@renovate renovate bot force-pushed the renovate/pmd-7.x branch from cd7319d to 36fa84e Compare November 30, 2024 07:29
@renovate renovate bot force-pushed the renovate/pmd-7.x branch 2 times, most recently from dd8110e to 024c1dd Compare December 19, 2024 18:07
@renovate renovate bot force-pushed the renovate/pmd-7.x branch from 024c1dd to a511681 Compare December 27, 2024 16:27
@renovate renovate bot force-pushed the renovate/pmd-7.x branch from a511681 to f1f1c49 Compare January 31, 2025 12:55
@renovate renovate bot force-pushed the renovate/pmd-7.x branch from f1f1c49 to 96d9aa8 Compare February 28, 2025 13:52
@renovate renovate bot force-pushed the renovate/pmd-7.x branch 2 times, most recently from de1b7f3 to 6afb356 Compare March 17, 2025 16:36
@renovate renovate bot force-pushed the renovate/pmd-7.x branch from 6afb356 to 8ebc0a6 Compare March 28, 2025 10:47
@renovate renovate bot force-pushed the renovate/pmd-7.x branch from 8ebc0a6 to 0d02c12 Compare April 25, 2025 14:12
@renovate renovate bot force-pushed the renovate/pmd-7.x branch from 0d02c12 to d878f3f Compare May 5, 2025 20:30
@renovate renovate bot force-pushed the renovate/pmd-7.x branch from d878f3f to 02e98ff Compare May 30, 2025 19:34
@renovate renovate bot force-pushed the renovate/pmd-7.x branch from 02e98ff to 05c5519 Compare June 13, 2025 14:15
@renovate renovate bot force-pushed the renovate/pmd-7.x branch 2 times, most recently from 0051aac to b121c0e Compare June 27, 2025 12:39
@renovate renovate bot force-pushed the renovate/pmd-7.x branch from b121c0e to 7b8f266 Compare July 8, 2025 20:53
@renovate renovate bot force-pushed the renovate/pmd-7.x branch from 7b8f266 to 4c66d0d Compare July 25, 2025 12:04
@renovate renovate bot force-pushed the renovate/pmd-7.x branch 2 times, most recently from 2bad624 to 2f1264e Compare August 25, 2025 23:06
@renovate renovate bot force-pushed the renovate/pmd-7.x branch 2 times, most recently from 85cf92e to 04cbfcf Compare September 26, 2025 11:37
@renovate renovate bot force-pushed the renovate/pmd-7.x branch from 04cbfcf to cd7adef Compare October 9, 2025 15:33
@renovate renovate bot force-pushed the renovate/pmd-7.x branch from cd7adef to 4424333 Compare October 31, 2025 16:00
@renovate renovate bot force-pushed the renovate/pmd-7.x branch from 4424333 to c35d53c Compare November 18, 2025 23:03
@renovate renovate bot force-pushed the renovate/pmd-7.x branch from c35d53c to a6360bf Compare November 28, 2025 15:09
@renovate renovate bot force-pushed the renovate/pmd-7.x branch from a6360bf to 4681653 Compare December 19, 2025 15:52
@renovate renovate bot force-pushed the renovate/pmd-7.x branch 2 times, most recently from e3c2af9 to a622b40 Compare December 30, 2025 18:25
@renovate renovate bot force-pushed the renovate/pmd-7.x branch from a622b40 to 3bdf865 Compare January 30, 2026 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants