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 f83808e7 Add missing deprecation.
f83808e7 is described below

commit f83808e7dfbd95216c9bd296686a5e385fcd0aed
Author: Phil Steitz <phil.ste...@gmail.com>
AuthorDate: Sat May 24 16:34:57 2025 -0700

    Add missing deprecation.
---
 src/main/java/org/apache/commons/pool2/impl/GenericObjectPool.java | 1 +
 1 file changed, 1 insertion(+)

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 63fa53a2..09187714 100644
--- a/src/main/java/org/apache/commons/pool2/impl/GenericObjectPool.java
+++ b/src/main/java/org/apache/commons/pool2/impl/GenericObjectPool.java
@@ -407,6 +407,7 @@ public class GenericObjectPool<T> extends 
BaseGenericObjectPool<T>
      * @throws NoSuchElementException if an instance cannot be returned
      * @throws Exception if an object instance cannot be returned due to an
      *                   error
+     * @deprecated Use {@link #borrowObject(Duration)}.
      */
     public T borrowObject(final long maxWaitMillis) throws Exception {
         return borrowObject(Duration.ofMillis(maxWaitMillis));

Reply via email to