UnusedAssignment
What this rule checks
No unused assignments
Configuration
When off, this rule is excluded from pipeline runs. Changes apply immediately.
Code Examples
Overview
| Category | Topic Variables |
| Level | Advanced |
| Type | Built-in PMD |
| Priority | 3 (1 = highest, 5 = lowest) |
| Status | Active |
PMD Configuration
| PMD reference | category/java/bestpractices.xml/UnusedAssignment |
| Properties |
checkUnusedPrefixIncrement = falsereportUnusedVariables = false |