Skip to content

Add Check Support for Java 21 Unnamed Variables & Patterns Syntax: VariableDeclarationUsageDistanceCheck #15071

@mahfouz72

Description

@mahfouz72

child of #14942:
check doc : https://checkstyle.org/checks/coding/variabledeclarationusagedistance.html


Declaring an unnamed variable does not place a name in scope, so the variable cannot be written or read after it is initialized, So the usage distance isn't applicable for unnamed variables. They can not be used.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions