Inspectopedia Help

Assignment to method parameter

Reports assignment to method parameters.

While occasionally intended, this construct can be extremely confusing, and is often the result of a typo.

Example:

def m(a, b, c) { a = [] // warning }

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Groovy, 233.SNAPSHOT

Last modified: 13 July 2023