1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 22:22:11 +02:00

More efficient ordering of conditions.

This commit is contained in:
Sergey Prigogin 2014-04-01 10:35:05 -07:00
parent 5850c01893
commit 2e7fd0da20

View file

@ -730,7 +730,7 @@ public class PDOMManager implements IWritableIndexManager, IListener {
@Override
public boolean isIndexerIdle() {
synchronized (fTaskQueue) {
return Job.getJobManager().find(this).length == 0 && fTaskQueue.isEmpty();
return fTaskQueue.isEmpty() && Job.getJobManager().find(this).length == 0;
}
}