Skip to content

Fix PoolUtils.checkMinIdle null pool message and KeyedObjectPool.addObjects Javadoc - #461

Open
siddiqueirshad wants to merge 1 commit into
apache:masterfrom
siddiqueirshad:fix-pool-issues
Open

siddiqueirshad wants to merge 1 commit into
apache:masterfrom
siddiqueirshad:fix-pool-issues

Conversation

@siddiqueirshad

Copy link
Copy Markdown

Summary

  1. In PoolUtils.checkMinIdle(final ObjectPool<T, E> pool, final int minIdle, final long periodMillis), when pool is null, the method threw IllegalArgumentException(MSG_NULL_KEYED_POOL) ("keyedPool must not be null.") instead of MSG_NULL_POOL ("pool must not be null."). This PR corrects the message constant and asserts it in TestPoolUtils.testCheckMinIdleObjectPool.
  2. In KeyedObjectPool.addObjects(final Collection<K> keys, final int count), removed keyedPool from @throws IllegalArgumentException when {@code keyedPool}, {@code keys}, or any value... since keyedPool is not a parameter on this instance method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant