'wait()' without corresponding 'notify()'
Reports calls to Object.wait()
, for which no call to the corresponding Object.notify()
or Object.notifyAll()
can be found.
This inspection only reports calls with qualifiers referencing fields of the current class.
Example:
public class Foo {
public Object foo = new Object();
void bar() throws InterruptedException {
this.foo.wait();
}
}
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Java, 233.SNAPSHOT |
Last modified: 13 July 2023