Inspectopedia
 
2024.3

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

Warning
New
Last modified: 03 December 2024

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.

Example: