mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-15 04:59:24 +00:00
Merge pull request #616 from mookkiah/issue_587_async-method-invocation
#587 SonarQube reports bugs - async-method-invocation
This commit is contained in:
+1
-1
@@ -139,7 +139,7 @@ public class ThreadAsyncExecutor implements AsyncExecutor {
|
||||
@Override
|
||||
public void await() throws InterruptedException {
|
||||
synchronized (lock) {
|
||||
if (!isCompleted()) {
|
||||
while (!isCompleted()) {
|
||||
lock.wait();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user