Improved: General refactoring and code improvements, package
org.apache.ofbiz.base.concurrent. (OFBIZ-9928) Thanks Dennis Balkir for reporting and providing the patches. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1818547 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -81,9 +81,7 @@ public final class ExecutionPool {
|
||||
for (Future<F> future: futureList) {
|
||||
try {
|
||||
result.add(future.get());
|
||||
} catch (ExecutionException e) {
|
||||
Debug.logError(e, module);
|
||||
} catch (InterruptedException e) {
|
||||
} catch (ExecutionException | InterruptedException e) {
|
||||
Debug.logError(e, module);
|
||||
}
|
||||
}
|
||||
@@ -149,7 +147,9 @@ public final class ExecutionPool {
|
||||
return 0;
|
||||
}
|
||||
long r = timeDiff((Pulse) other);
|
||||
if (r < 0) return -1;
|
||||
if (r < 0) {
|
||||
return -1;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user