tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ok...@apache.org
Subject [3/9] incubator-tinkerpop git commit: another null memory tweak. no point sending around empty lists --- using null instead.
Date Tue, 03 May 2016 20:53:21 GMT
another null memory tweak. no point sending around empty lists --- using null instead.


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

Branch: refs/heads/TINKERPOP-1288
Commit: e3a4b7ff9bd730b7056b4ab224ea8e9255263c9b
Parents: cd5524d
Author: Marko A. Rodriguez <okrammarko@gmail.com>
Authored: Mon May 2 16:25:30 2016 -0600
Committer: Marko A. Rodriguez <okrammarko@gmail.com>
Committed: Mon May 2 16:25:30 2016 -0600

----------------------------------------------------------------------
 .../spark/process/computer/payload/ViewIncomingPayload.java      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/e3a4b7ff/spark-gremlin/src/main/java/org/apache/tinkerpop/gremlin/spark/process/computer/payload/ViewIncomingPayload.java
----------------------------------------------------------------------
diff --git a/spark-gremlin/src/main/java/org/apache/tinkerpop/gremlin/spark/process/computer/payload/ViewIncomingPayload.java
b/spark-gremlin/src/main/java/org/apache/tinkerpop/gremlin/spark/process/computer/payload/ViewIncomingPayload.java
index 2dc9796..94b124b 100644
--- a/spark-gremlin/src/main/java/org/apache/tinkerpop/gremlin/spark/process/computer/payload/ViewIncomingPayload.java
+++ b/spark-gremlin/src/main/java/org/apache/tinkerpop/gremlin/spark/process/computer/payload/ViewIncomingPayload.java
@@ -44,7 +44,7 @@ public final class ViewIncomingPayload<M> implements Payload {
 
     public ViewIncomingPayload(final ViewPayload viewPayload) {
         this.incomingMessages = null;
-        this.view = viewPayload.getView();
+        this.view = viewPayload.getView().isEmpty() ? null : viewPayload.getView();
     }
 
 
@@ -58,7 +58,7 @@ public final class ViewIncomingPayload<M> implements Payload {
     }
 
     public boolean hasView() {
-        return null != view;
+        return null != this.view;
     }
 
     ////////////////////


Mime
View raw message