Inspectopedia Help

Result of assignment used

Reports assignment expressions nested inside other expressions to use the assigned value immediately.

Such expressions may be confusing and violating the general design principle that a given construct should do precisely one thing.

Inspection options

Option

Type

Default

Inspect anonymous closures

Checkbox

false

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Groovy, 233.SNAPSHOT

Last modified: 13 July 2023