This is an automated email from the ASF dual-hosted git repository.
ggregory 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 53a7c676 Update single line comment
53a7c676 is described below
commit 53a7c676f6ed7ee07f6b17d28500eebb281189a7
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Nov 24 08:45:58 2024 -0500
Update single line comment
---
src/main/java/org/apache/commons/pool2/impl/GenericObjectPool.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/pool2/impl/GenericObjectPool.java
b/src/main/java/org/apache/commons/pool2/impl/GenericObjectPool.java
index 386b7a9c..94c97c38 100644
--- a/src/main/java/org/apache/commons/pool2/impl/GenericObjectPool.java
+++ b/src/main/java/org/apache/commons/pool2/impl/GenericObjectPool.java
@@ -549,7 +549,7 @@ public class GenericObjectPool<T> extends
BaseGenericObjectPool<T>
}
}
- // Do not block more if maxWaitTimeMillis is set.
+ // Do not block more if localMaxWaitDuration is set.
if (create == null &&
localMaxWaitDuration.compareTo(Duration.ZERO) > 0 &&
Duration.between(localStartInstant,
Instant.now()).compareTo(localMaxWaitDuration) >= 0) {
create = Boolean.FALSE;