| Severity | 2 |
|---|---|
| Enabled | yes |
| Waivable | |
| Rationale | |
| Violation |
![CDATA[private static int amountSum;
public void setAmount(final int newAmount) {
logger.debug(new Integer(newAmount));
amount = newAmount;
this.amountSum += newAmount;
}]]
|
| Fix |
![CDATA[private static int amountSum;
public void setAmount(final int newAmount) {
logger.debug(new Integer(newAmount));
amount = newAmount;
amountSum += newAmount;
}]]
|
| Resources |