Code inspection: Useless arithmetical operation
This inspection reports arithmetic operations that have no effect in every execution path the analysis can prove. Typical examples are multiplying by 1, dividing by 1, or dividing 0 by another value. These operations only make the code noisier.
Example
int result = value / 1;
int result = value;
01 April 2026