You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2019/12/05 20:18:47 UTC

[commons-pool] branch master updated: NO-JIRA (doc): Add a missing @throws comment in SoftReferenceObjectPool. (#28)

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 a505999  NO-JIRA (doc): Add a missing @throws comment in SoftReferenceObjectPool. (#28)
a505999 is described below

commit a50599921f4349bcdad35f2c642f1d148d099448
Author: Prodigysov <pr...@gmail.com>
AuthorDate: Thu Dec 5 14:18:42 2019 -0600

    NO-JIRA (doc): Add a missing @throws comment in SoftReferenceObjectPool. (#28)
---
 .../java/org/apache/commons/pool2/impl/SoftReferenceObjectPool.java     | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/main/java/org/apache/commons/pool2/impl/SoftReferenceObjectPool.java b/src/main/java/org/apache/commons/pool2/impl/SoftReferenceObjectPool.java
index eb841b1..05592f5 100644
--- a/src/main/java/org/apache/commons/pool2/impl/SoftReferenceObjectPool.java
+++ b/src/main/java/org/apache/commons/pool2/impl/SoftReferenceObjectPool.java
@@ -186,6 +186,8 @@ public class SoftReferenceObjectPool<T> extends BaseObjectPool<T> {
      *
      * @param obj
      *            instance to return to the pool
+     * @throws IllegalArgumentException
+     *            if obj is not currently part of this pool
      */
     @Override
     public synchronized void returnObject(final T obj) throws Exception {