Inspectopedia
 
2024.3

Field can be local

Warning
New
Last modified: 03 December 2024

Reports redundant class fields that can be replaced with local variables.

If all local usages of a field are preceded by assignments to that field, the field can be removed, and its usages can be replaced with local variables.