Beispiel

public static class ClassA {
Condition c;
public void methodA {
try {
c.wait();
} catch ( Exception e ) {
//...
}
}

}
Lösung
Ersetzen Sie die Methode 'wait()' durch 'await()'.

public static class ClassA {
Condition c;
public void methodA {
try {
c.await();
} catch ( Exception e ) {
//...
}
}

}