Code inspection: Use compound assignment
This inspection reports assignments where the left-hand side is immediately combined with another value and assigned back to itself. Typical examples are patterns like x = x + y or x = x * y, which can be written with a compound assignment operator.
Example
count = count + 1;
total = total * factor;
count += 1;
total *= factor;
Quick-fix
Compound assignments are shorter and make the "update this variable" intent explicit.
30 March 2026