Back to Intellij Community

ChangeToOperator

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

2025.3-rc-2149 B
Original Source

Reports method calls that can be replaced with operator invocations.

Example:

a.plus(b)

After the quick-fix is applied:

a + b