Back to Intellij Community

GroovyImplicitNullArgumentCall

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

2025.3-rc-2257 B
Original Source

Reports calls with no arguments to method that has exactly one parameter. This is equivalent to call with null, and that behavior is often confusing and unintended.

Example:

def foo(String s){}
foo() // this call is actually 'foo(null)' call