svn commit: r802881 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/DelegatorData.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r802881 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/DelegatorData.java

adrianc
Author: adrianc
Date: Mon Aug 10 18:22:40 2009
New Revision: 802881

URL: http://svn.apache.org/viewvc?rev=802881&view=rev
Log:
Small code cleanup in DelegatorData.java.

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

Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/DelegatorData.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/DelegatorData.java?rev=802881&r1=802880&r2=802881&view=diff
==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/DelegatorData.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/DelegatorData.java Mon Aug 10 18:22:40 2009
@@ -55,11 +55,11 @@
     protected String delegatorName = null;
     protected DistributedCacheClear distributedCacheClear = null;
     protected EntityEcaHandler<?> entityEcaHandler = null;
+    protected boolean initialized = false;
     protected ModelGroupReader modelGroupReader = null;
     protected ModelReader modelReader = null;
     protected String originalDelegatorName = null;
     protected SequenceUtil sequencer = null;
-    protected boolean initialized = false;
 
     public static synchronized DelegatorData getInstance(String delegatorName) throws GenericEntityException {
         if (delegatorName == null) {
@@ -88,24 +88,24 @@
         this.modelReader = ModelReader.getModelReader(delegatorName);
         this.modelGroupReader = ModelGroupReader.getModelGroupReader(delegatorName);
         this.cache = new Cache(delegatorName);
-        this.delegatorInfo = EntityConfigUtil.getDelegatorInfo(this.delegatorName);
+        this.delegatorInfo = EntityConfigUtil.getDelegatorInfo(delegatorName);
     }
 
     @Override
     protected Object clone() {
         DelegatorData delegatorData = new DelegatorData();
-        delegatorData.modelReader = this.modelReader;
-        delegatorData.modelGroupReader = this.modelGroupReader;
-        delegatorData.delegatorName = this.delegatorName;
-        delegatorData.delegatorInfo = this.delegatorInfo;
-        delegatorData.cache = this.cache;
         delegatorData.andCacheFieldSets = this.andCacheFieldSets;
+        delegatorData.cache = this.cache;
+        delegatorData.crypto = this.crypto;
+        delegatorData.delegatorInfo = this.delegatorInfo;
+        delegatorData.delegatorName = this.delegatorName;
         delegatorData.distributedCacheClear = this.distributedCacheClear;
-        delegatorData.originalDelegatorName = this.originalDelegatorName;
         delegatorData.entityEcaHandler = this.entityEcaHandler;
-        delegatorData.sequencer = this.sequencer;
-        delegatorData.crypto = this.crypto;
         delegatorData.initialized = this.initialized;
+        delegatorData.modelGroupReader = this.modelGroupReader;
+        delegatorData.modelReader = this.modelReader;
+        delegatorData.originalDelegatorName = this.originalDelegatorName;
+        delegatorData.sequencer = this.sequencer;
         return delegatorData;
     }
 }