cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r1075296 - /cayenne/main/trunk/framework/cayenne-lifecycle/src/main/java/org/apache/cayenne/lifecycle/relationship/UuidBatchFault.java
Date Mon, 28 Feb 2011 11:23:25 GMT
Author: aadamchik
Date: Mon Feb 28 11:23:24 2011
New Revision: 1075296

URL: http://svn.apache.org/viewvc?rev=1075296&view=rev
Log:
CAY-1546 cayenne-lifecycle: UuidBatchFault concurrency issues

polishing a bit

Modified:
    cayenne/main/trunk/framework/cayenne-lifecycle/src/main/java/org/apache/cayenne/lifecycle/relationship/UuidBatchFault.java

Modified: cayenne/main/trunk/framework/cayenne-lifecycle/src/main/java/org/apache/cayenne/lifecycle/relationship/UuidBatchFault.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-lifecycle/src/main/java/org/apache/cayenne/lifecycle/relationship/UuidBatchFault.java?rev=1075296&r1=1075295&r2=1075296&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-lifecycle/src/main/java/org/apache/cayenne/lifecycle/relationship/UuidBatchFault.java
(original)
+++ cayenne/main/trunk/framework/cayenne-lifecycle/src/main/java/org/apache/cayenne/lifecycle/relationship/UuidBatchFault.java
Mon Feb 28 11:23:24 2011
@@ -77,7 +77,7 @@ class UuidBatchFault {
         // simple case of one query, handle it separately for performance reasons
         if (sources.size() == 1) {
 
-            String uuid = sources.iterator().next().getUuid();
+            String uuid = sources.get(0).getUuid();
             String entityName = UuidCoder.getEntityName(uuid);
 
             ObjEntity entity = resolver.getObjEntity(entityName);



Mime
View raw message