commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject commons-pool git commit: [POOL-332] ObjectPool and KeyedObject pool should extend Closeable.
Date Tue, 31 Oct 2017 13:50:03 GMT
Repository: commons-pool
Updated Branches:
  refs/heads/master 71b36527b -> 133c901cf


[POOL-332] ObjectPool and KeyedObject pool should extend Closeable.

Project: http://git-wip-us.apache.org/repos/asf/commons-pool/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-pool/commit/133c901c
Tree: http://git-wip-us.apache.org/repos/asf/commons-pool/tree/133c901c
Diff: http://git-wip-us.apache.org/repos/asf/commons-pool/diff/133c901c

Branch: refs/heads/master
Commit: 133c901cf9a15d98b08c9e4fe3e11a4f28968c3c
Parents: 71b3652
Author: Gary Gregory <ggregory@apache.org>
Authored: Tue Oct 31 07:50:01 2017 -0600
Committer: Gary Gregory <ggregory@apache.org>
Committed: Tue Oct 31 07:50:01 2017 -0600

----------------------------------------------------------------------
 src/changes/changes.xml                                     | 3 +++
 src/main/java/org/apache/commons/pool2/KeyedObjectPool.java | 3 ++-
 src/main/java/org/apache/commons/pool2/ObjectPool.java      | 3 ++-
 3 files changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-pool/blob/133c901c/src/changes/changes.xml
----------------------------------------------------------------------
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index f3859d6..549d68f 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -50,6 +50,9 @@ The <action> type attribute can be add,update,fix,remove.
     <action dev="ggregory" issue="POOL-330" type="delete">
       Drop Ant build.
     </action>
+    <action dev="ggregory" issue="POOL-332" type="add">
+      ObjectPool and KeyedObject pool should extend Closeable.
+    </action>
   </release>
   <release version="2.4.3" date="2017-10-24" description="This is a patch release, including
bug fixes only.">
     <action dev="ggregory" issue="POOL-328" type="fix" due-to="Lorenzo Solano Martinez">

http://git-wip-us.apache.org/repos/asf/commons-pool/blob/133c901c/src/main/java/org/apache/commons/pool2/KeyedObjectPool.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/pool2/KeyedObjectPool.java b/src/main/java/org/apache/commons/pool2/KeyedObjectPool.java
index e8d6aaa..8954d49 100644
--- a/src/main/java/org/apache/commons/pool2/KeyedObjectPool.java
+++ b/src/main/java/org/apache/commons/pool2/KeyedObjectPool.java
@@ -16,6 +16,7 @@
  */
 package org.apache.commons.pool2;
 
+import java.io.Closeable;
 import java.util.NoSuchElementException;
 
 /**
@@ -60,7 +61,7 @@ import java.util.NoSuchElementException;
  *
  * @since 2.0
  */
-public interface KeyedObjectPool<K,V> {
+public interface KeyedObjectPool<K,V> extends Closeable {
     /**
      * Obtains an instance from this pool for the specified <code>key</code>.
      * <p>

http://git-wip-us.apache.org/repos/asf/commons-pool/blob/133c901c/src/main/java/org/apache/commons/pool2/ObjectPool.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/pool2/ObjectPool.java b/src/main/java/org/apache/commons/pool2/ObjectPool.java
index e8dca46..0f8eef3 100644
--- a/src/main/java/org/apache/commons/pool2/ObjectPool.java
+++ b/src/main/java/org/apache/commons/pool2/ObjectPool.java
@@ -16,6 +16,7 @@
  */
 package org.apache.commons.pool2;
 
+import java.io.Closeable;
 import java.util.NoSuchElementException;
 
 /**
@@ -54,7 +55,7 @@ import java.util.NoSuchElementException;
  *
  * @since 2.0
  */
-public interface ObjectPool<T> {
+public interface ObjectPool<T> extends Closeable {
     /**
      * Obtains an instance from this pool.
      * <p>


Mime
View raw message