blob: d23eb118701f505f31e2ad30e1371e7f46dc4665 [file] [log] [blame]
package com.siyeh.igtest.threading;
public class NakedNotifyInspection
{
public void foo()
{
final Object bar = new Object();
synchronized (this) {
bar.toString();
bar.notify();
}
synchronized (this) {
notifyAll();
}
synchronized (this) {
notify();
}
}
public synchronized void bar()
{
notifyAll();
}
}