This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-pool.git
The following commit(s) were added to refs/heads/master by this push:
new 7cf0e122 Update single line comment
7cf0e122 is described below
commit 7cf0e1224ae3b5225ca391a8bbd2406d1d35d0f1
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Nov 24 08:46:31 2024 -0500
Update single line comment
---
src/main/java/org/apache/commons/pool3/impl/GenericObjectPool.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/pool3/impl/GenericObjectPool.java
b/src/main/java/org/apache/commons/pool3/impl/GenericObjectPool.java
index 430b8d0f..d541afc1 100644
--- a/src/main/java/org/apache/commons/pool3/impl/GenericObjectPool.java
+++ b/src/main/java/org/apache/commons/pool3/impl/GenericObjectPool.java
@@ -561,7 +561,7 @@ public class GenericObjectPool<T, E extends Exception>
extends BaseGenericObject
}
}
- // 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;