Skip to content

[java] Fix #5948: UnnecessaryBoxingRule: Check if unboxing is required for overload resolution - #5971

Merged
adangel merged 1 commit into
pmd:mainfrom
UncleOwen:issue-5948
Aug 8, 2025
Merged

adangel merged 1 commit into
pmd:mainfrom
UncleOwen:issue-5948

Conversation

@UncleOwen

@UncleOwen UncleOwen commented Aug 7, 2025 •

Copy link
Copy Markdown
Member

Describe the PR

UnnecessaryBoxingRule: Fix false positives that happen if unboxing is required for overload resolution

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)

@github-actions

github-actions Bot commented Aug 7, 2025

Copy link
Copy Markdown

Documentation Preview

Compared to main:
This changeset changes 0 violations,
introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 98 violations, 25 errors and 8 configuration errors.

Regression Tester Report

(comment created at 2025-08-07 16:31:21+00:00 for 9d446ca)

@UncleOwen UncleOwen changed the title UnnecessaryBoxingRule: Check if unboxing is required for overload resolution Fix #5948: [java] UnnecessaryBoxingRule: Check if unboxing is required for overload resolution Aug 7, 2025

@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 added this to the 7.17.0 milestone Aug 8, 2025
@adangel
adangel merged commit 64ef399 into pmd:main Aug 8, 2025
@UncleOwen
UncleOwen deleted the issue-5948 branch August 8, 2025 11:26
@adangel adangel changed the title Fix #5948: [java] UnnecessaryBoxingRule: Check if unboxing is required for overload resolution [java] Fix #5948: UnnecessaryBoxingRule: Check if unboxing is required for overload resolution Sep 8, 2025
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] UnnecessaryBoxing false positive when calling List.remove(int)

2 participants