Inspectopedia Help

Class explicitly extends 'Object'

Reports any classes that are explicitly declared to extend java.lang.Object.

Such declaration is redundant and can be safely removed.

Example:

class MyClass extends Object { }

The quick-fix removes the redundant extends Object clause:

class MyClass { }

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Java, 233.SNAPSHOT

Last modified: 13 July 2023