Back to Intellij Community

ExtendsObject

java/java-impl/resources/inspectionDescriptions/ExtendsObject.html

2025.3-rc-2281 B
Original Source

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 {
  }