Inspectopedia 2025.2 Help

Unnecessary supertype qualification

Reports super member calls with redundant supertype qualification.

Code in a derived class can call its superclass functions and property accessors implementations using the super keyword. To specify the supertype from which the inherited implementation is taken, super can be qualified by the supertype name in angle brackets, e.g. super<Base>. Sometimes this qualification is redundant and can be omitted. Use the 'Remove explicit supertype qualification' quick-fix to clean up the code.

Examples:

open class B { open fun foo(){} } class A : B() { override fun foo() { super<B>.foo() // <== redundant because 'B' is the only supertype } } interface I { fun foo() {} } class C : B(), I { override fun foo() { super<B>.foo() // <== here <B> qualifier is needed to distinguish 'B.foo()' from 'I.foo()' } }

After the quick-fix is applied:

open class B { open fun foo(){} } class A : B() { override fun foo() { super.foo() // <== Updated } } interface I { fun foo() {} } class C : B(), I { override fun foo() { super<B>.foo() } }

Locating this inspection

By ID

Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.

RemoveExplicitSuperQualifier
Via Settings dialog

Path to the inspection settings via IntelliJ Platform IDE Settings dialog, when you need to adjust inspection settings directly from your IDE.

Settings or Preferences | Editor | Inspections | Kotlin | Redundant constructs

Suppressing Inspection

You can suppress this inspection by placing the following comment marker before the code fragment where you no longer want messages from this inspection to appear:

//noinspection RemoveExplicitSuperQualifier

More detailed instructions as well as other ways and options that you have can be found in the product documentation:

Inspection Details

By default bundled with:

IntelliJ IDEA 2025.2, Qodana for JVM 2025.2,

Last modified: 18 September 2025