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/05/26 14:03:52 UTC

[2/2] incubator-tinkerpop git commit: Make GraphSONUtil a utility class.

Make GraphSONUtil a utility class.


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

Branch: refs/heads/master
Commit: 708706b2dd3157342ce0319e00d362581d4e86bb
Parents: 76b50f8
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Tue May 26 08:03:26 2015 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Tue May 26 08:03:26 2015 -0400

----------------------------------------------------------------------
 .../structure/io/graphson/GraphSONUtil.java        |  3 +++
 .../structure/io/graphson/GraphSONUtilTest.java    | 17 +++++++++++++++++
 2 files changed, 20 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/708706b2/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphson/GraphSONUtil.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphson/GraphSONUtil.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphson/GraphSONUtil.java
index cee7611..efaa3e0 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphson/GraphSONUtil.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphson/GraphSONUtil.java
@@ -31,6 +31,9 @@ import java.io.IOException;
  * @author Stephen Mallette (http://stephen.genoprime.com)
  */
 public final class GraphSONUtil {
+
+    private GraphSONUtil() {}
+
     public static void writeWithType(final String key, final Object object, final JsonGenerator jsonGenerator,
                                      final SerializerProvider serializerProvider,
                                      final TypeSerializer typeSerializer) throws IOException {

http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/708706b2/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/structure/io/graphson/GraphSONUtilTest.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/structure/io/graphson/GraphSONUtilTest.java b/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/structure/io/graphson/GraphSONUtilTest.java
new file mode 100644
index 0000000..4ea3feb
--- /dev/null
+++ b/gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/structure/io/graphson/GraphSONUtilTest.java
@@ -0,0 +1,17 @@
+package org.apache.tinkerpop.gremlin.structure.io.graphson;
+
+import org.apache.tinkerpop.gremlin.TestHelper;
+import org.apache.tinkerpop.gremlin.util.Serializer;
+import org.junit.Test;
+
+/**
+ * @author Stephen Mallette (http://stephen.genoprime.com)
+ */
+public class GraphSONUtilTest {
+    @Test
+    public void shouldBeUtilityClass() throws Exception {
+        TestHelper.assertIsUtilityClass(Serializer.class);
+    }
+
+
+}