Inspectopedia
 
2024.3

Unnecessary supertype qualification

Info
New
Last modified: 03 December 2024

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:

After the quick-fix is applied: