Inspectopedia
 
2024.3

Local variable or parameter can be 'final'

Warning
New
Last modified: 03 December 2024

Reports parameters or local variables that may have the final modifier added to their declaration.

Example:

After the quick-fix is applied:

Use the inspection's options to define whether parameters or local variables should be reported.