Improved: Fixing defects reported by FindBugs, package
org.apache.ofbiz.entity.config.model. (OFBIZ-9717) Thanks Julian Leichert for reporting and providing the patch. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1817550 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -173,7 +173,7 @@ public final class Datasource {
|
||||
maxWorkerPoolSizeInt = Math.abs(maxWorkerPoolSizeInt) * Runtime.getRuntime().availableProcessors();
|
||||
}
|
||||
this.maxWorkerPoolSize = maxWorkerPoolSizeInt;
|
||||
} catch (Exception e) {
|
||||
} catch (NumberFormatException e) {
|
||||
throw new GenericEntityConfException("<datasource> element max-worker-pool-size attribute is invalid" + lineNumberText);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user