Example

public static class ClassA {
Condição c;
public void methodA {
try {
c.wait();
} catch ( Exception e ) {
//...
}
}

}
Solução
Substitua wait() por await()

public static class ClassA {
Condição c;
public void methodA {
try {
c.await();
} catch ( Exception e ) {
//...
}
}

}