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.


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


Java, 233.SNAPSHOT

Last modified: 13 July 2023