tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spmalle...@apache.org
Subject [5/7] incubator-tinkerpop git commit: Used GraphSONTokens where they should have been used
Date Mon, 30 Nov 2015 22:01:43 GMT
Used GraphSONTokens where they should have been used


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

Branch: refs/heads/master
Commit: 87607611042152a1c02e029cbde78e89ebe22f5c
Parents: 820297e
Author: Stephen Mallette <spmva@genoprime.com>
Authored: Mon Nov 30 16:36:16 2015 -0500
Committer: Stephen Mallette <spmva@genoprime.com>
Committed: Mon Nov 30 16:36:16 2015 -0500

----------------------------------------------------------------------
 .../gremlin/tinkergraph/structure/TinkerIoRegistry.java          | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/87607611/tinkergraph-gremlin/src/main/java/org/apache/tinkerpop/gremlin/tinkergraph/structure/TinkerIoRegistry.java
----------------------------------------------------------------------
diff --git a/tinkergraph-gremlin/src/main/java/org/apache/tinkerpop/gremlin/tinkergraph/structure/TinkerIoRegistry.java
b/tinkergraph-gremlin/src/main/java/org/apache/tinkerpop/gremlin/tinkergraph/structure/TinkerIoRegistry.java
index 60cebe6..abdef24 100644
--- a/tinkergraph-gremlin/src/main/java/org/apache/tinkerpop/gremlin/tinkergraph/structure/TinkerIoRegistry.java
+++ b/tinkergraph-gremlin/src/main/java/org/apache/tinkerpop/gremlin/tinkergraph/structure/TinkerIoRegistry.java
@@ -233,8 +233,8 @@ public final class TinkerIoRegistry extends AbstractIoRegistry {
                 edges = (List<Map<String, Object>>) deserializationContext.readValue(jsonParser,
ArrayList.class);
             } else {
                 final Map<String, Object> graphData = deserializationContext.readValue(jsonParser,
HashMap.class);
-                vertices = (List<Map<String,Object>>) graphData.get("vertices");
-                edges = (List<Map<String,Object>>) graphData.get("edges");
+                vertices = (List<Map<String,Object>>) graphData.get(GraphSONTokens.VERTICES);
+                edges = (List<Map<String,Object>>) graphData.get(GraphSONTokens.EDGES);
             }
 
             for (Map<String, Object> vertexData : vertices) {


Mime
View raw message