Back to Intellij Community

NotifyWithoutCorrespondingWait

java/java-impl/resources/inspectionDescriptions/NotifyWithoutCorrespondingWait.html

2025.3-rc-2317 B
Original Source

Reports calls to Object.notify() or Object.notifyAll() for which no call to a corresponding Object.wait() can be found.

Only calls that target fields of the current class are reported by this inspection.

Example:

synchronized (synList) {
    synList.notify(); //synList.wait() is never called
  }