Inspectopedia Help

Assignment issues

Assignment can be replaced with operator assignment  

Reports assignments which can be replaced by an operator assignment.

Assignment to 'for' loop parameter  

Reports assignments to for loop parameters inside the for loop body.

Assignment to method parameter  

Reports assignment to method parameters.

Incompatible type assignments  

Reports assignments with incompatible types.

Nested assignment  

Reports assignment expressions nested inside other expressions.

Result of assignment used  

Reports assignment expressions nested inside other expressions to use the assigned value immediately.

Silly assignment  

Reports assignments of a variable to itself.

Unchecked assignment from members of raw type  

Reports unchecked assignments from members of raw type.

Last modified: 18 June 2024