Inspectopedia Help

Class name same as ancestor name

Reports classes that have the same name as one of their superclasses, while their fully qualified names remain different. Such class names may be very confusing.


package util; abstract class Iterable<T> implements java.lang.Iterable<T> {}

A quick-fix that renames such classes is available only in the editor.

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3


Java, 233.SNAPSHOT

Last modified: 13 July 2023