Inspectopedia
 
2024.3

'wait()' called on 'java.util.concurrent.locks.Condition' object

Warning
New
Last modified: 03 December 2024

Reports calls to wait() made on a java.util.concurrent.locks.Condition object. This is probably a programming error, and some variant of the await() method was intended instead.

Example:

Good code would look like this: