Inspectopedia Help

Variable can be final

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


def list = [1,2,3] return list

After the quick-fix is applied:

final def list = [1,2,3] return list

For more information, see the same inspection in Java.

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3


Groovy, 233.SNAPSHOT

Last modified: 13 July 2023