Skip to content

Fix #5892: [java] ShortVariable FP for java 22 Unnamed Variable #5914

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 18, 2025

Conversation

lukasgraef
Copy link
Contributor

@lukasgraef lukasgraef commented Jul 17, 2025

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)

Copy link

Documentation Preview

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

Regression Tester Report

(comment created at 2025-07-17 20:18:24+00:00 for 4432b50)

Copy link
Member

@adangel adangel left a comment

Choose a reason for hiding this comment

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

Thanks, looks good!

I'll add another test case for record pattern matching when I merge it.

@adangel adangel added this to the 7.16.0 milestone Jul 18, 2025
@adangel adangel merged commit 4432b50 into pmd:main Jul 18, 2025
12 checks passed
adangel added a commit that referenced this pull request Jul 18, 2025
adangel added a commit that referenced this pull request Jul 18, 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] ShortVariable false positive for java 22 unnamed variable _
2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy