openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwsut...@apache.org
Subject svn commit: r1308654 - /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java
Date Tue, 03 Apr 2012 02:14:43 GMT
Author: kwsutter
Date: Tue Apr  3 02:14:43 2012
New Revision: 1308654

URL: http://svn.apache.org/viewvc?rev=1308654&view=rev
Log:
OPENJPA-2167.  Change data structure type from a Set to List so as to avoid the use of hashcode
processing.

Modified:
    openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java

Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java?rev=1308654&r1=1308653&r2=1308654&view=diff
==============================================================================
--- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java
(original)
+++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java
Tue Apr  3 02:14:43 2012
@@ -109,7 +109,7 @@ public class JDBCStoreManager implements
     private Log _log = null;
     
     // track the pending statements so we can cancel them
-    private Set<Statement> _stmnts = Collections.synchronizedSet(new HashSet<Statement>());
+    private List<Statement> _stmnts = Collections.synchronizedList(new ArrayList<Statement>());
 
     public StoreContext getContext() {
         return _ctx;
@@ -740,7 +740,7 @@ public class JDBCStoreManager implements
         // we want to allow a different thread to be able to cancel the
         // outstanding statement on a different context
 
-        Collection<Statement> stmnts;
+        List<Statement> stmnts;
         synchronized (_stmnts) {
             if (_stmnts.isEmpty())
                 return false;



Mime
View raw message