Skip to content

chore: Remove unnecessary casts - #6944

Merged
adangel merged 3 commits into
pmd:mainfrom
UncleOwen:remove-unnecessary-casts
Aug 15, 2026
Merged

adangel merged 3 commits into
pmd:mainfrom
UncleOwen:remove-unnecessary-casts

Conversation

@UncleOwen

@UncleOwen UncleOwen commented Aug 6, 2026 •

Copy link
Copy Markdown
Member

Describe the PR

This PR removes all unnecessary casts from PMD.

In 2 cases, I had to add "PMD.UnnecessaryCast" to an already existing @SuppressWarning(). Currently, this triggers the "UnnecessarySuppression" rule, so we can only merge this at the same time we merge the corresponding build-tools update.

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)
  • Added (in-code) documentation (if needed)

@lukasgraef lukasgraef 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 for the cleanup!

Just one optional suggestion.

@adangel adangel changed the title Remove unnecessary casts chore: Remove unnecessary casts Aug 14, 2026
@adangel adangel added this to the 7.27.0 milestone Aug 15, 2026
@adangel
adangel merged commit fcc6b2f into pmd:main Aug 15, 2026
7 of 9 checks passed
@UncleOwen
UncleOwen deleted the remove-unnecessary-casts branch August 28, 2026 21:09
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.

3 participants