Class FinalLocalVariableCheck.FinalVariableCandidate
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck.FinalVariableCandidate
-
- Enclosing class:
- FinalLocalVariableCheck
private static final class FinalLocalVariableCheck.FinalVariableCandidate extends Object
Represents information about final local variable candidate.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
alreadyAssigned
Whether the variable is already assigned.private boolean
assigned
Whether the variable is assigned.private DetailAST
variableIdent
Identifier token.
-
Constructor Summary
Constructors Modifier Constructor Description private
FinalVariableCandidate(DetailAST variableIdent)
Creates new instance.
-
-
-
Field Detail
-
variableIdent
private final DetailAST variableIdent
Identifier token.
-
assigned
private boolean assigned
Whether the variable is assigned.
-
alreadyAssigned
private boolean alreadyAssigned
Whether the variable is already assigned.
-
-
Constructor Detail
-
FinalVariableCandidate
private FinalVariableCandidate(DetailAST variableIdent)
Creates new instance.- Parameters:
variableIdent
- variable identifier.
-
-