Inspectopedia Help

Call to 'notify()' instead of 'notifyAll()'

Reports calls to Object.notify(). While occasionally useful, in almost all cases Object.notifyAll() is a better choice because calling Object.notify() may lead to deadlocks. See Doug Lea's Concurrent Programming in Java for a discussion.

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3


Java, 233.SNAPSHOT

Last modified: 13 July 2023