This is an automated email from the ASF dual-hosted git repository. psteitz pushed a commit to branch POOL_2_X in repository https://gitbox.apache.org/repos/asf/commons-pool.git
The following commit(s) were added to refs/heads/POOL_2_X by this push: new 3da2956b Fix line wrapping. 3da2956b is described below commit 3da2956bf3e0cb985f539938e38814e485719fc9 Author: psteitz <phil.ste...@gmail.com> AuthorDate: Fri Jul 21 19:06:46 2023 -0700 Fix line wrapping. --- .../java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java b/src/main/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java index a544ee5b..5c887e6b 100644 --- a/src/main/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java +++ b/src/main/java/org/apache/commons/pool2/impl/GenericKeyedObjectPool.java @@ -448,8 +448,8 @@ public class GenericKeyedObjectPool<K, T> extends BaseGenericObjectPool<T> } if (blockWhenExhausted) { if (PooledObject.isNull(p)) { - p = borrowMaxWaitMillis < 0 ? objectDeque.getIdleObjects().takeFirst() - : objectDeque.getIdleObjects().pollFirst(borrowMaxWaitMillis, TimeUnit.MILLISECONDS); + p = borrowMaxWaitMillis < 0 ? objectDeque.getIdleObjects().takeFirst(): + objectDeque.getIdleObjects().pollFirst(borrowMaxWaitMillis, TimeUnit.MILLISECONDS); } if (PooledObject.isNull(p)) { throw new NoSuchElementException(appendStats(