Inspectopedia Help

'wait()' or 'await()' without timeout

Reports calls to Object.wait() or Condition.await() without specifying a timeout.

Such calls may be dangerous in high-availability programs, as failures in one component may result in blockages of the waiting component if notify()/notifyAll() or signal()/signalAll() never get called.


void foo(Object bar) throws InterruptedException { bar.wait(); }

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3


Java, 233.SNAPSHOT

Last modified: 13 July 2023