Inspectopedia Help

Named arguments of constructor call

Reports named arguments of a default class constructor call which don't correspond to properties of this class.

Example:

class Person { def name def age } // 'firstName' property doesn't exist new Person(firstName: "John")

Inspection Details

By default bundled with:

IntelliJ IDEA 2024.1, Qodana for JVM 2024.1,

Can be installed with plugin:

Groovy, 241.14841

Last modified: 12 March 2024