Inspectopedia Help

Class directly extends 'Thread'

Reports classes that directly extend java.lang.Thread. It is usually recommended to prefer composition over inheritance to create more reusable code that is easier to modify later.


class MainThread extends Thread { }

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3


Java, 233.SNAPSHOT

Last modified: 13 July 2023