Inspectopedia Help

Call to 'Thread.stop()', 'suspend()' or 'resume()'

Reports calls to Thread.stop(), Thread.suspend(), and Thread.resume().

These calls are inherently prone to data corruption and deadlocks, and their use is strongly discouraged. It is better to use cooperative cancellation instead of stop, and interruption instead of direct calls to suspend and resume.

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Java, 233.SNAPSHOT

Last modified: 13 July 2023