'notify()' without corresponding 'wait()'
Reports calls to Object.notify()
or Object.notifyAll()
for which no call to a corresponding Object.wait()
can be found.
Only calls that target fields of the current class are reported by this inspection.
Example:
synchronized (synList) {
synList.notify(); //synList.wait() is never called
}
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Java, 233.SNAPSHOT |
Last modified: 13 July 2023