void () { final Object bar = new Object(); synchronized (this) { bar.toString(); bar.notify(); } synchronized (this) { <warning descr="Call to 'notifyAll()' without corresponding state change">notifyAll</warning>(); } synchronized (this) { <warning descr="Call to 'notify()' without corresponding state change">notify</warning>(); } }