Skip to content
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

[java] LocalVariableCouldBeFinal should consider blank local variables #3122

Closed
oowekyala opened this issue Feb 19, 2021 · 0 comments · Fixed by #5003
Closed

[java] LocalVariableCouldBeFinal should consider blank local variables #3122

oowekyala opened this issue Feb 19, 2021 · 0 comments · Fixed by #5003
Assignees
Labels
a:false-negative PMD doesn't flag a problematic piece of code
Milestone

Comments

@oowekyala
Copy link
Member

oowekyala commented Feb 19, 2021

Affects PMD 7.0.0.

There is a test case for that (currently disabled), see

#3113 (comment)

This requires some sort of control-flow awareness, which could be part of pmd 7.

@oowekyala oowekyala added the a:false-negative PMD doesn't flag a problematic piece of code label Feb 19, 2021
@oowekyala oowekyala added this to the 7.0.0 milestone Feb 19, 2021
@oowekyala oowekyala added this to Rule changes backlog in PMD 7 Apr 3, 2021
@oowekyala oowekyala mentioned this issue Apr 7, 2022
55 tasks
@adangel adangel modified the milestones: 7.0.0, 7.x Jan 23, 2023
@adangel adangel removed this from Rule changes backlog in PMD 7 Jan 23, 2023
@jsotuyod jsotuyod added the needs:pmd7-revalidation The issue hasn't yet been retested vs PMD 7 and may be stale label Mar 17, 2024
@jsotuyod jsotuyod removed the needs:pmd7-revalidation The issue hasn't yet been retested vs PMD 7 and may be stale label Apr 2, 2024
@oowekyala oowekyala modified the milestones: 7.x, 7.2.0 May 11, 2024
@oowekyala oowekyala self-assigned this May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:false-negative PMD doesn't flag a problematic piece of code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants