Skip to content

[java] Fix #6719: UseStandardCharsets UTF-32 on Java >= 22#6726

Merged
adangel merged 2 commits into
pmd:mainfrom
UncleOwen:issue-6719-UseStandardCharsets-UTF-32
May 28, 2026
Merged

[java] Fix #6719: UseStandardCharsets UTF-32 on Java >= 22#6726
adangel merged 2 commits into
pmd:mainfrom
UncleOwen:issue-6719-UseStandardCharsets-UTF-32

Conversation

@UncleOwen

Copy link
Copy Markdown
Member

Describe the PR

Since Java 22, java.nio.charset.StandardCharsets includes UTF-32 (and variants). Update UseStandardCharsets to reflect that.

Related issues

Ready?

  • Added unit tests for fixed bug/feature
  • Passing all unit tests
  • Complete build ./mvnw clean verify passes (checked automatically by github actions)
  • [n/a] Added (in-code) documentation (if needed)

@pmd-actions-helper

pmd-actions-helper Bot commented May 27, 2026

Copy link
Copy Markdown
Contributor

Documentation Preview

Compared to main:
This changeset changes 0 violations,
introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 15 errors and 9 configuration errors.
There are 0 changed duplications, 0 new duplications and 0 removed duplications.
There are 0 changed CPD errors, 0 new CPD errors and 0 removed CPD errors.

Regression Tester Report

(comment created at 2026-05-27 15:55:25+00:00 for d6842b5)

@UncleOwen UncleOwen force-pushed the issue-6719-UseStandardCharsets-UTF-32 branch from 5b4f7fd to d6842b5 Compare May 27, 2026 15:40
@adangel adangel added this to the 7.25.0 milestone May 28, 2026

@adangel adangel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@adangel adangel merged commit ca5bfe4 into pmd:main May 28, 2026
13 checks passed
@UncleOwen UncleOwen deleted the issue-6719-UseStandardCharsets-UTF-32 branch May 28, 2026 07:12
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.

[java] UseStandardCharsets: False negative with Java 22+ and UTF-32 charsets

2 participants