Author: ggregory
Date: Tue Jul 28 19:05:03 2009
New Revision: 798656

URL: http://svn.apache.org/viewvc?rev=798656&view=rev
Log:
Fix private method misspelling: calculateDefecit -> calculateDeficit.

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

Modified: 
commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
URL: 
http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java?rev=798656&r1=798655&r2=798656&view=diff
==============================================================================
--- 
commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
 (original)
+++ 
commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
 Tue Jul 28 19:05:03 2009
@@ -2028,9 +2028,9 @@
         // as a loop limit and a second time inside the loop
         // to stop when another thread already returned the
         // needed objects
-        int objectDeficit = calculateDefecit(pool, false);
+        int objectDeficit = calculateDeficit(pool, false);
 
-        for (int i = 0; i < objectDeficit && calculateDefecit(pool, true) > 0; 
i++) {
+        for (int i = 0; i < objectDeficit && calculateDeficit(pool, true) > 0; 
i++) {
             try {
                 addObject(key);
             } finally {
@@ -2107,7 +2107,7 @@
      *                            incremented?
      * @return The number of objects to be created
      */
-    private synchronized int calculateDefecit(ObjectQueue pool,
+    private synchronized int calculateDeficit(ObjectQueue pool,
             boolean incrementInternal) {
         int objectDefecit = 0;
 


Reply via email to