You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2013/12/18 22:56:34 UTC

svn commit: r1552120 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java

Author: jleroux
Date: Wed Dec 18 21:56:33 2013
New Revision: 1552120

URL: http://svn.apache.org/r1552120
Log:
No functional change. As suggested Adrian on dev ML, creates the AtomicReference update outside the try-catch block.


Modified:
    ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java

Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java?rev=1552120&r1=1552119&r2=1552120&view=diff
==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java Wed Dec 18 21:56:33 2013
@@ -2511,9 +2511,9 @@ public class GenericDelegator implements
 
             SequenceUtil sequencer = this.AtomicRefSequencer.get();
             if (sequencer == null) {
+                ModelEntity seqEntity = this.getModelEntity("SequenceValueItem");
+                sequencer = new SequenceUtil(this, this.getEntityHelperInfo("SequenceValueItem"), seqEntity, "seqName", "seqId");
                 try {
-                    ModelEntity seqEntity = this.getModelEntity("SequenceValueItem");
-                    sequencer = new SequenceUtil(this, this.getEntityHelperInfo("SequenceValueItem"), seqEntity, "seqName", "seqId");
                     if (!AtomicRefSequencer.compareAndSet(null, sequencer)) {
                         sequencer = this.AtomicRefSequencer.get();
                     }