Back to all rules
What this rule checks
Uses final variable declarations
Configuration
When off, this rule is excluded from pipeline runs. Changes apply immediately.
Code Examples
PASS — this code satisfies the rule
int MAX_SPEED = 10;
FAIL — this code triggers the rule
final int MAX_SPEED = 10;
// 'final' is out of scope
Overview
Category Out of Scope
Type Custom Zita
Priority 3 (1 = highest, 5 = lowest)
Status Active
PMD Configuration
Java class nl.utwente.processing.pmd.rules.HasFinalVariableRule
Message template The 'final' keyword is used.