You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by do...@apache.org on 2011/06/30 00:10:58 UTC
svn commit: r1141273 -
/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java
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)