Back to Intellij Community

GroovyConstructorNamedArguments

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

2025.3-rc-2255 B
Original Source

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")