範例
public
class
ClassA {
private boolean
b;
public void
methodA () {
synchronized
(
this
) {
notify();
}
}
}
解決方案
移除 synchronized 區塊或變更物件的狀態。