Back to Intellij Community

ThreadWithDefaultRunMethod

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

2025.3-rc-2203 B
Original Source

Reports instantiations of Thread or an inheritor without specifying a Runnable parameter or overriding the run() method. Such threads do nothing useful.

Example:

new Thread().start();