You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2015/04/17 18:02:00 UTC

[09/17] incubator-tinkerpop git commit: Minor variable renaming.

Minor variable renaming.


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

Branch: refs/heads/variables
Commit: 271cdde95f33c9d8a0163bfa39707bf570cd372e
Parents: 9990579
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Fri Apr 17 09:02:33 2015 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Fri Apr 17 09:02:33 2015 -0400

----------------------------------------------------------------------
 .../tinkerpop/gremlin/structure/io/gryo/GryoWriter.java   | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/271cdde9/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/gryo/GryoWriter.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/gryo/GryoWriter.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/gryo/GryoWriter.java
index eb60491..242b1d5 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/gryo/GryoWriter.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/gryo/GryoWriter.java
@@ -30,10 +30,8 @@ import org.apache.tinkerpop.shaded.kryo.io.Output;
 
 import java.io.IOException;
 import java.io.OutputStream;
-import java.nio.ByteBuffer;
 import java.util.HashMap;
 import java.util.Iterator;
-import java.util.UUID;
 
 /**
  * The {@link GraphWriter} for the Gremlin Structure serialization format based on Kryo.  The format is meant to be
@@ -56,10 +54,10 @@ public class GryoWriter implements GraphWriter {
         final Output output = new Output(outputStream);
         this.headerWriter.write(kryo, output);
 
-        final boolean supportsGraphMemory = g.features().graph().variables().supportsVariables();
-        output.writeBoolean(supportsGraphMemory);
-        if (supportsGraphMemory)
-            kryo.writeObject(output, new HashMap(g.variables().asMap()));
+        final boolean supportsGraphVariables = g.features().graph().variables().supportsVariables();
+        output.writeBoolean(supportsGraphVariables);
+        if (supportsGraphVariables)
+            kryo.writeObject(output, new HashMap<>(g.variables().asMap()));
 
         final Iterator<Vertex> vertices = g.vertices();
         final boolean hasSomeVertices = vertices.hasNext();