Inspectopedia 2024.3 Help

Assignment issues

'null' assignment   New in this release

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   New in this release

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   New in this release

Reports assignment to, or modification of lambda parameters.

Assignment to method parameter   New in this release

Reports assignment to, or modification of method parameters.

Assignment to static field from instance context   New in this release

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   New in this release

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   New in this release

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

Last modified: 11 September 2024