commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1021900 - /commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/StackKeyedObjectPool.java
Date Tue, 12 Oct 2010 19:51:03 GMT
Author: sebb
Date: Tue Oct 12 19:51:03 2010
New Revision: 1021900

URL: http://svn.apache.org/viewvc?rev=1021900&view=rev
Log:
Explicit unboxing

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

Modified: commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/StackKeyedObjectPool.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/StackKeyedObjectPool.java?rev=1021900&r1=1021899&r2=1021900&view=diff
==============================================================================
--- commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/StackKeyedObjectPool.java
(original)
+++ commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/StackKeyedObjectPool.java
Tue Oct 12 19:51:03 2010
@@ -417,7 +417,7 @@ public class StackKeyedObjectPool<K,V> e
      */
     private int getActiveCount(K key) {
         try {
-            return _activeCount.get(key);
+            return _activeCount.get(key).intValue();
         } catch(NoSuchElementException e) {
             return 0;
         } catch(NullPointerException e) {



Mime
View raw message