Inspectopedia Help

Implicit null argument

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

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Groovy, 233.SNAPSHOT

Last modified: 13 July 2023