Beispiel

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

}
Lösung
Stellen Sie die Methode 'await()' in eine While-Schleife.

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

}