Inspectopedia
 
2024.3

Local variable is reassigned in closure or anonymous class

Warning
Reliability
New
Last modified: 03 December 2024

Reports local variables assigned to expression with different type inside of closure or anonymous class.

Example:

As a result, the integer variable sum is reassigned to a String expression.