commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1725736 - /commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/GenericObjectPool.java
Date Wed, 20 Jan 2016 15:01:00 GMT
Author: markt
Date: Wed Jan 20 15:01:00 2016
New Revision: 1725736

URL: http://svn.apache.org/viewvc?rev=1725736&view=rev
Log:
Remove unused throws

Modified:
    commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/GenericObjectPool.java

Modified: commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/GenericObjectPool.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/GenericObjectPool.java?rev=1725736&r1=1725735&r2=1725736&view=diff
==============================================================================
--- commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/GenericObjectPool.java
(original)
+++ commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/GenericObjectPool.java
Wed Jan 20 15:01:00 2016
@@ -327,7 +327,7 @@ public class GenericObjectPool<T> extend
      *
      * @see AbandonedConfig
      */
-    public void setAbandonedConfig(AbandonedConfig abandonedConfig) throws IllegalArgumentException
{
+    public void setAbandonedConfig(AbandonedConfig abandonedConfig) {
         if (abandonedConfig == null) {
             this.abandonedConfig = null;
         } else {
@@ -534,7 +534,7 @@ public class GenericObjectPool<T> extend
     @Override
     public void returnObject(T obj) {
         PooledObject<T> p = allObjects.get(new IdentityWrapper<T>(obj));
-        
+
         if (p == null) {
             if (!isAbandonedConfig()) {
                 throw new IllegalStateException(
@@ -825,7 +825,7 @@ public class GenericObjectPool<T> extend
             removeAbandoned(ac);
         }
     }
-    
+
     /**
      * Tries to ensure that {@link #getMinIdle()} idle instances are available
      * in the pool.
@@ -1163,5 +1163,5 @@ public class GenericObjectPool<T> extend
         builder.append(", abandonedConfig=");
         builder.append(abandonedConfig);
     }
-    
+
 }



Mime
View raw message