Repository: tinkerpop
Updated Branches:
  refs/heads/master bb108ccea -> 3ce806996


TINKERPOP-1427 Should use GraphSON 3.0 in the serializer provider


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

Branch: refs/heads/master
Commit: 12bbbf40586f4e8cf2885b2e1fcc18bd2572e7ba
Parents: 49f30e4
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Fri Jun 30 14:00:13 2017 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Thu Jul 13 12:51:37 2017 -0400

----------------------------------------------------------------------
 .../structure/io/graphson/GraphSONSerializerProvider.java       | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/12bbbf40/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphson/GraphSONSerializerProvider.java
----------------------------------------------------------------------
diff --git 
a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphson/GraphSONSerializerProvider.java
 
b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphson/GraphSONSerializerProvider.java
index 458a2d9..bd7f966 100644
--- 
a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphson/GraphSONSerializerProvider.java
+++ 
b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphson/GraphSONSerializerProvider.java
@@ -40,9 +40,12 @@ final class GraphSONSerializerProvider extends 
DefaultSerializerProvider {
         if (version == GraphSONVersion.V1_0) {
             setDefaultKeySerializer(new 
GraphSONSerializersV1d0.GraphSONKeySerializer());
             unknownTypeSerializer = new ToStringSerializer();
-        } else {
+        } else if (version == GraphSONVersion.V2_0) {
             setDefaultKeySerializer(new 
GraphSONSerializersV2d0.GraphSONKeySerializer());
             unknownTypeSerializer = new ToStringGraphSONSerializer();
+        } else {
+            setDefaultKeySerializer(new 
GraphSONSerializersV3d0.GraphSONKeySerializer());
+            unknownTypeSerializer = new ToStringGraphSONSerializer();
         }
     }
 

Reply via email to