Back to Intellij Community

GroovyNestedAssignment

plugins/groovy/groovy-psi/resources/inspectionDescriptions/GroovyNestedAssignment.html

2025.3-rc-2249 B
Original Source

Reports assignment expressions nested inside other expressions. While admirably terse, such expressions may be confusing, and violate the general design principle that a given construct should do precisely one thing.

Example:

a = b = 1