Inspectopedia Help

Implicit call to 'super()'

Reports constructors that do not begin with a call to "super" constructor or another constructor of the same class.

Such constructors can be thought of as implicitly beginning with a call to super(). Some coding standards prefer that such calls to super() be made explicitly.

Example:

class Foo { Foo() {} }

After the quick-fix is applied:

class Foo { Foo() { super(); } }

Use the inspection settings to ignore classes extending directly from Object. For instance:

class Foo { Foo() {} // Not reported } class Bar extends Foo { Bar() {} // Implicit call to 'super()' }

Inspection options

Option

Type

Default

Ignore for direct subclasses of 'java.lang.Object'

Checkbox

false

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Java, 233.SNAPSHOT

Last modified: 13 July 2023