#587 SonarQube reports bugs
As recommended in https://sonarcloud.io/organizations/default/rules#rule_key=squid%3AS2274 Used while insteadof if - for waiting upon a condition.
This commit is contained in:
parent
68d094a847
commit
2a7feba427
@ -139,7 +139,7 @@ public class ThreadAsyncExecutor implements AsyncExecutor {
|
||||
@Override
|
||||
public void await() throws InterruptedException {
|
||||
synchronized (lock) {
|
||||
if (!isCompleted()) {
|
||||
while (!isCompleted()) {
|
||||
lock.wait();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user