polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From soelvs...@apache.org
Subject zest-java git commit: minor reformatting
Date Sun, 13 Dec 2015 22:38:25 GMT
Repository: zest-java
Updated Branches:
  refs/heads/develop 8ce8950bb -> 22b4514e6


minor reformatting


Project: http://git-wip-us.apache.org/repos/asf/zest-java/repo
Commit: http://git-wip-us.apache.org/repos/asf/zest-java/commit/22b4514e
Tree: http://git-wip-us.apache.org/repos/asf/zest-java/tree/22b4514e
Diff: http://git-wip-us.apache.org/repos/asf/zest-java/diff/22b4514e

Branch: refs/heads/develop
Commit: 22b4514e65b4b2b05ce88641fbf091cc36c30fe9
Parents: 8ce8950
Author: Kent Sølvsten <soelvsten@apache.org>
Authored: Sun Dec 13 23:38:21 2015 +0100
Committer: Kent Sølvsten <soelvsten@apache.org>
Committed: Sun Dec 13 23:38:21 2015 +0100

----------------------------------------------------------------------
 .../zest/runtime/unitofwork/EntityBuilderInstance.java       | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/zest-java/blob/22b4514e/core/runtime/src/main/java/org/apache/zest/runtime/unitofwork/EntityBuilderInstance.java
----------------------------------------------------------------------
diff --git a/core/runtime/src/main/java/org/apache/zest/runtime/unitofwork/EntityBuilderInstance.java
b/core/runtime/src/main/java/org/apache/zest/runtime/unitofwork/EntityBuilderInstance.java
index 345be83..425e851 100755
--- a/core/runtime/src/main/java/org/apache/zest/runtime/unitofwork/EntityBuilderInstance.java
+++ b/core/runtime/src/main/java/org/apache/zest/runtime/unitofwork/EntityBuilderInstance.java
@@ -117,12 +117,10 @@ public final class EntityBuilderInstance<T>
     {
         checkValid();
 
-        String identity;
-
         // Figure out whether to use given or generated identity
-        identity = (String) entityState.propertyValueOf( IDENTITY_STATE_NAME );
-        EntityState newEntityState = model.newEntityState( store,
-                                                           EntityReference.parseEntityReference(
identity ) );
+        String identity = (String) entityState.propertyValueOf( IDENTITY_STATE_NAME );
+        EntityReference entityReference = EntityReference.parseEntityReference( identity
);
+        EntityState newEntityState = model.newEntityState( store, entityReference );
 
         prototypeInstance.invokeCreate();
 


Mime
View raw message