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

By default bundled with:

IntelliJ IDEA 2024.1, Qodana for JVM 2024.1,

Can be installed with plugin:

Java, 241.16690

Last modified: 29 April 2024