You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ps...@apache.org on 2023/07/21 17:08:07 UTC

[commons-pool] branch POOL_2_X updated: Revert incompatible change (not needed until exception type parameter is added in v 3)

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 85a5b0ba Revert incompatible change (not needed until exception type parameter is added in v 3)
85a5b0ba is described below

commit 85a5b0bab4c777b0a399190069fc3563876ba488
Author: psteitz <ph...@gmail.com>
AuthorDate: Fri Jul 21 10:07:46 2023 -0700

    Revert incompatible change (not needed until exception type parameter is added in v 3)
---
 .../java/org/apache/commons/pool2/BaseKeyedPooledObjectFactory.java   | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/commons/pool2/BaseKeyedPooledObjectFactory.java b/src/main/java/org/apache/commons/pool2/BaseKeyedPooledObjectFactory.java
index 1754747c..7b45f76e 100644
--- a/src/main/java/org/apache/commons/pool2/BaseKeyedPooledObjectFactory.java
+++ b/src/main/java/org/apache/commons/pool2/BaseKeyedPooledObjectFactory.java
@@ -116,8 +116,6 @@ public abstract class BaseKeyedPooledObjectFactory<K, V> extends BaseObject impl
      *
      * @param value the instance to wrap, should not be null.
      * @return The provided instance, wrapped by a {@link PooledObject}
-     * @throws Exception if there is a problem wrapping an instance,
-     *    this will be propagated to the code requesting an object.
      */
-    public abstract PooledObject<V> wrap(V value) throws Exception;
+    public abstract PooledObject<V> wrap(V value);
 }