Severity | 2 |
---|---|
Enabled | yes |
Waivable | |
Violation |
private int incInt(int intToInc) { // ... some calculations ... intToInc+=INC_VAL; // ... some calculations ... return intToInc; } |
Fix |
private int incInt(final int intToInc) { // ... some calculations ... return intToInc + INC_VAL; } |