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

By default bundled with:

IntelliJ IDEA 2024.1, Qodana for JVM 2024.1,

Can be installed with plugin:

Java, 241.16690

Last modified: 29 April 2024