Skip to content

[java] LocalVariableCouldBeFinal should consider blank local variables #3122

@oowekyala

Description

@oowekyala

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.

Metadata

Metadata

Assignees

Labels

a:false-negativePMD doesn't flag a problematic piece of code

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions