Author: psteitz
Date: Sat Jul 21 16:49:26 2007
New Revision: 558397

URL: http://svn.apache.org/viewvc?view=rev&rev=558397
Log:
Fixed javadoc to match behavior when maxWait is 0
(blocks indefinitely if exhausted action is block).

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

Modified: 
jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java?view=diff&rev=558397&r1=558396&r2=558397
==============================================================================
--- 
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
 Sat Jul 21 16:49:26 2007
@@ -524,7 +524,7 @@
      * [EMAIL PROTECTED] #setWhenExhaustedAction "when exhausted" action} is
      * [EMAIL PROTECTED] #WHEN_EXHAUSTED_BLOCK}.
      *
-     * When less than 0, the [EMAIL PROTECTED] #borrowObject} method
+     * When less than or equal to 0, the [EMAIL PROTECTED] #borrowObject} 
method
      * may block indefinitely.
      *
      * @return the maximum number of milliseconds borrowObject will block.
@@ -543,7 +543,7 @@
      * [EMAIL PROTECTED] #setWhenExhaustedAction "when exhausted" action} is
      * [EMAIL PROTECTED] #WHEN_EXHAUSTED_BLOCK}.
      *
-     * When less than 0, the [EMAIL PROTECTED] #borrowObject} method
+     * When less than or equal to 0, the [EMAIL PROTECTED] #borrowObject} 
method
      * may block indefinitely.
      *
      * @param maxWait the maximum number of milliseconds borrowObject will 
block or negative for indefinitely.
@@ -1596,7 +1596,7 @@
      * [EMAIL PROTECTED] #getWhenExhaustedAction "when exhausted" action} is
      * [EMAIL PROTECTED] #WHEN_EXHAUSTED_BLOCK}.
      *
-     * When less than 0, the [EMAIL PROTECTED] #borrowObject} method
+     * When less than or equal to 0, the [EMAIL PROTECTED] #borrowObject} 
method
      * may block indefinitely.
      *
      * @see #setMaxWait

Modified: 
jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericObjectPool.java
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericObjectPool.java?view=diff&rev=558397&r1=558396&r2=558397
==============================================================================
--- 
jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericObjectPool.java
 (original)
+++ 
jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericObjectPool.java
 Sat Jul 21 16:49:26 2007
@@ -511,7 +511,7 @@
      * [EMAIL PROTECTED] #setWhenExhaustedAction "when exhausted" action} is
      * [EMAIL PROTECTED] #WHEN_EXHAUSTED_BLOCK}.
      *
-     * When less than 0, the [EMAIL PROTECTED] #borrowObject} method
+     * When less than or equal to 0, the [EMAIL PROTECTED] #borrowObject} 
method
      * may block indefinitely.
      *
      * @return maximum number of milliseconds to block when borrowing an 
object.
@@ -530,7 +530,7 @@
      * [EMAIL PROTECTED] #setWhenExhaustedAction "when exhausted" action} is
      * [EMAIL PROTECTED] #WHEN_EXHAUSTED_BLOCK}.
      *
-     * When less than 0, the [EMAIL PROTECTED] #borrowObject} method
+     * When less than or equal to 0, the [EMAIL PROTECTED] #borrowObject} 
method
      * may block indefinitely.
      *
      * @param maxWait maximum number of milliseconds to block when borrowing 
an object.
@@ -1292,7 +1292,7 @@
      * [EMAIL PROTECTED] #getWhenExhaustedAction "when exhausted" action} is
      * [EMAIL PROTECTED] #WHEN_EXHAUSTED_BLOCK}.
      *
-     * When less than 0, the [EMAIL PROTECTED] #borrowObject} method
+     * When less than or equal to 0, the [EMAIL PROTECTED] #borrowObject} 
method
      * may block indefinitely.
      *
      * @see #setMaxWait



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to