Skip to content

[java] Fix #6502: CloseResource should consider unqualified method calls#6505

Merged
adangel merged 4 commits intopmd:mainfrom
adangel:java/fix-6502-close-resource-unqualified
Mar 24, 2026
Merged

[java] Fix #6502: CloseResource should consider unqualified method calls#6505
adangel merged 4 commits intopmd:mainfrom
adangel:java/fix-6502-close-resource-unqualified

Conversation

@adangel
Copy link
Copy Markdown
Member

@adangel adangel commented Mar 13, 2026

Describe the PR

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)

@adangel adangel added this to the 7.23.0 milestone Mar 13, 2026
@pmd-actions-helper
Copy link
Copy Markdown
Contributor

pmd-actions-helper bot commented Mar 13, 2026

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 8 configuration errors.

Regression Tester Report

(comment created at 2026-03-24 18:25:46+00:00 for 483d7bc)

@adangel adangel merged commit 447b6a5 into pmd:main Mar 24, 2026
13 checks passed
@adangel adangel deleted the java/fix-6502-close-resource-unqualified branch March 24, 2026 18:29
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] CloseResource: False positive for allowedResourceMethodPatterns entries when using unqualified method calls

2 participants