'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();
}
}
Locating this inspection
- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
WaitWithoutCorrespondingNotify- Via Settings dialog
Path to the inspection settings via IntelliJ Platform IDE Settings dialog, when you need to adjust inspection settings directly from your IDE.
Availability
- By default bundled with
- Can be installed with plugin
Java, 241.18072
Last modified: 18 June 2024