usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject [36/42] git commit: Added else if instead of separate else block for consistency/efficiency.
Date Wed, 05 Feb 2014 01:21:46 GMT
Added else if instead of separate else block for consistency/efficiency.


Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/e03500d2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/e03500d2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/e03500d2

Branch: refs/pull/29/merge
Commit: e03500d2662f4c8276f8eb85d3a2682bd9e6a197
Parents: 443438f
Author: GERey <greyes@apigee.com>
Authored: Thu Jan 30 09:44:07 2014 -0800
Committer: GERey <greyes@apigee.com>
Committed: Thu Jan 30 09:44:07 2014 -0800

----------------------------------------------------------------------
 .../usergrid/persistence/cassandra/RelationManagerImpl.java | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/e03500d2/stack/core/src/main/java/org/usergrid/persistence/cassandra/RelationManagerImpl.java
----------------------------------------------------------------------
diff --git a/stack/core/src/main/java/org/usergrid/persistence/cassandra/RelationManagerImpl.java
b/stack/core/src/main/java/org/usergrid/persistence/cassandra/RelationManagerImpl.java
index 3414139..7f69e66 100644
--- a/stack/core/src/main/java/org/usergrid/persistence/cassandra/RelationManagerImpl.java
+++ b/stack/core/src/main/java/org/usergrid/persistence/cassandra/RelationManagerImpl.java
@@ -1098,16 +1098,13 @@ public class RelationManagerImpl implements RelationManager {
             else if ( itrObj instanceof SimpleEntityRef ) {
                 connection = new ConnectionRefImpl( (SimpleEntityRef) itrObj );
             }
-            else {
-                if ( itrObj instanceof EntityRef ) {
+            else if ( itrObj instanceof EntityRef ) {
                     connection = new ConnectionRefImpl( new SimpleEntityRef((EntityRef) itr.next()));
-                }
-                else if ( itrObj instanceof UUID ) {
+            }
+            else if ( itrObj instanceof UUID ) {
                     connection = new ConnectionRefImpl( new SimpleEntityRef((UUID)itr.next()));
-                }
             }
 
-
             batchUpdateEntityConnection( batch, true, connection, timestampUuid );
         }
     }


Mime
View raw message