java.util.concurrent.locks.Condition 객체에서 이루어진 wait() 호출을 보고합니다. 이는 프로그래밍 오류일 수 있으며 대신 await() 메서드의 변형이 의도되었을 수 있습니다.

예:


  void acquire(Condition released) throws InterruptedException {
    while (acquired) {
      released.wait();
    }
  }

좋은 코드는 다음과 같습니다.


  void acquire(Condition released) throws InterruptedException {
    while (acquired) {
      released.await();
    }
  }