commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject svn commit: r1206500 - in /commons/proper/pool/branches/POOL_1_X/src/java/org/apache/commons/pool/impl: GenericKeyedObjectPool.java GenericObjectPool.java
Date Sat, 26 Nov 2011 17:09:10 GMT
Author: psteitz
Date: Sat Nov 26 17:09:06 2011
New Revision: 1206500

URL: http://svn.apache.org/viewvc?rev=1206500&view=rev
Log:
Eliminated JDK 1.5-dependent code introduced in the fix for JIRA: POOL-189.

Modified:
    commons/proper/pool/branches/POOL_1_X/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
    commons/proper/pool/branches/POOL_1_X/src/java/org/apache/commons/pool/impl/GenericObjectPool.java

Modified: commons/proper/pool/branches/POOL_1_X/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/branches/POOL_1_X/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java?rev=1206500&r1=1206499&r2=1206500&view=diff
==============================================================================
--- commons/proper/pool/branches/POOL_1_X/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
(original)
+++ commons/proper/pool/branches/POOL_1_X/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
Sat Nov 26 17:09:06 2011
@@ -1802,7 +1802,7 @@ public class GenericKeyedObjectPool exte
             startEvictor(-1L);
             
             while(_allocationQueue.size() > 0) {
-                Latch l = (Latch) _allocationQueue.remove();
+                Latch l = (Latch) _allocationQueue.removeFirst();
                 
                 synchronized (l) {
                     // notify the waiting thread

Modified: commons/proper/pool/branches/POOL_1_X/src/java/org/apache/commons/pool/impl/GenericObjectPool.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/branches/POOL_1_X/src/java/org/apache/commons/pool/impl/GenericObjectPool.java?rev=1206500&r1=1206499&r2=1206500&view=diff
==============================================================================
--- commons/proper/pool/branches/POOL_1_X/src/java/org/apache/commons/pool/impl/GenericObjectPool.java
(original)
+++ commons/proper/pool/branches/POOL_1_X/src/java/org/apache/commons/pool/impl/GenericObjectPool.java
Sat Nov 26 17:09:06 2011
@@ -1487,7 +1487,7 @@ public class GenericObjectPool extends B
             startEvictor(-1L);
 
             while(_allocationQueue.size() > 0) {
-                Latch l = (Latch) _allocationQueue.remove();
+                Latch l = (Latch) _allocationQueue.removeFirst();
                 
                 synchronized (l) {
                     // notify the waiting thread



Mime
View raw message