Inspectopedia Help

Assignment issues

'null' assignment  

Reports variables that are assigned to null outside a declaration.

Assignment can be replaced with operator assignment  

Reports assignment operations which can be replaced by operator-assignment.

Assignment to 'catch' block parameter  

Reports assignments to, catch block parameters.

Assignment to 'for' loop parameter  

Reports assignment to, or modification of a for loop parameter inside the body of the loop.

Assignment to lambda parameter  

Reports assignment to, or modification of lambda parameters.

Assignment to method parameter  

Reports assignment to, or modification of method parameters.

Assignment to static field from instance context  

Reports assignment to, or modification of static fields from within an instance method.

Assignment used as condition  

Reports assignments that are used as a condition of an if, while, for, or do statement, or a conditional expression.

Constructor assigns value to field defined in superclass  

Reports assignment to, or modification of fields that are declared in a superclass from within a subclass constructor.

Nested assignment  

Reports assignment expressions that are nested inside other expressions.

Result of '++' or '--' used  

Reports increment or decrement expressions that are nested inside other expressions.

Last modified: 18 June 2024