You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Mark Thomas (JIRA)" <ji...@apache.org> on 2012/05/02 11:29:00 UTC
[jira] [Resolved] (POOL-216)
GenericKeyedObjectPool.ensureMinIdle(K) does not need to check
getMinIdlePerKey()
[ https://issues.apache.org/jira/browse/POOL-216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Thomas resolved POOL-216.
------------------------------
Resolution: Fixed
Fix Version/s: 2.0
Thanks. Fixed.
> GenericKeyedObjectPool.ensureMinIdle(K) does not need to check getMinIdlePerKey()
> ---------------------------------------------------------------------------------
>
> Key: POOL-216
> URL: https://issues.apache.org/jira/browse/POOL-216
> Project: Commons Pool
> Issue Type: Improvement
> Reporter: Sebb
> Priority: Minor
> Fix For: 2.0
>
>
> The private method GenericKeyedObjectPool.ensureMinIdle(K) checks getMinIdlePerKey().
> However, when called by ensureMinIdle(void), this check has already been done.
> The private method is only otherwise called by preparePool(K), so the check could be moved there.
> This would eliminate one extra check per key when executing the protected ensureMinIdle() method.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira