Back to Intellij Community

GroovyInArgumentCheck

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

2025.3-rc-2195 B
Original Source

Reports usages of membership operator in with items and containers of incompatible types.

Example:

def list = [1, 2]
if ("foo" in list) {} // list of Integers can't contain String