Inspectopedia
 
2024.3

Variable can be final

Warning
Code Style
New
Last modified: 03 December 2024

Reports parameters or local variables that may have a final modifier added.

Example:

After the quick-fix is applied:

For more information, see the same inspection in Java.