You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by rd...@apache.org on 2006/02/14 22:09:30 UTC

svn commit: r377831 - /jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java

Author: rdonkin
Date: Tue Feb 14 13:09:29 2006
New Revision: 377831

URL: http://svn.apache.org/viewcvs?rev=377831&view=rev
Log:
Corrected contract bug in javadocs. Original patch contributed by Anton Tagunov. Committed patch contributed by Sandy McArthur. Issue #35543.

Modified:
    jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java

Modified: jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java?rev=377831&r1=377830&r2=377831&view=diff
==============================================================================
--- jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java (original)
+++ jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java Tue Feb 14 13:09:29 2006
@@ -457,8 +457,8 @@
     }
 
     /**
-     * Returns the cap on the total number of instances from my pool.
-     * @return the cap on the total number of instances from my pool.
+     * Returns the cap on the total number of instances from my pool if non-positive.
+     * @return the cap on the total number of instances from my pool if non-positive.
      * @see #setMaxTotal
      */
     public synchronized int getMaxTotal() {
@@ -466,9 +466,9 @@
     }
 
     /**
-     * Sets the cap on the total number of instances from my pool.
+     * Sets the cap on the total number of instances from my pool if non-positive.
      * @param maxTotal The cap on the total number of instances from my pool.
-     *                  Use a negative value for an infinite number of instances.
+     *                  Use a non-positive value for an infinite number of instances.
      * @see #getMaxTotal
      */
     public synchronized void setMaxTotal(int maxTotal) {
@@ -1404,7 +1404,7 @@
     private int _maxActive = DEFAULT_MAX_ACTIVE;
 
     /**
-     * The cap on the total number of instances from the pool.
+     * The cap on the total number of instances from the pool if non-positive.
      * @see #setMaxTotal
      * @see #getMaxTotal
      */



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org