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

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

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

doogie-3
Author: doogie
Date: Wed Jun 29 22:10:58 2011
New Revision: 1141273

URL: http://svn.apache.org/viewvc?rev=1141273&view=rev
Log:
OPTIMIZE: In class TestOperation, instance variables should be first, then
constructors, before any other methods.

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=1141273&r1=1141272&r2=1141273&view=diff
==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java Wed Jun 29 22:10:58 2011
@@ -2792,19 +2792,22 @@ public class GenericDelegator implements
         this.testMode = true;
     }
 
-    public class TestOperation {
+    public final class TestOperation {
         private final OperationType operation;
+        private final GenericValue value;
+
+        public TestOperation(OperationType operation, GenericValue value) {
+            this.operation = operation;
+            this.value = value;
+        }
+
         public OperationType getOperation() {
             return operation;
         }
+
         public GenericValue getValue() {
             return value;
         }
-        private final GenericValue value;
-        public TestOperation(OperationType operation, GenericValue value) {
-            this.operation = operation;
-            this.value = value;
-        }
     }
 
     /* (non-Javadoc)