示例

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

}
解决方案
将 wait() 替换为 await()

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

}