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 2016/03/17 21:24:02 UTC

[45/50] incubator-tinkerpop git commit: Cleaned up the toString() on RemoteGraph.

Cleaned up the toString() on RemoteGraph.


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

Branch: refs/heads/TINKERPOP-575
Commit: 2bf4489d5eeb1cb49c29e0e699504548018f05c0
Parents: 125ef59
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Thu Mar 17 08:51:06 2016 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Thu Mar 17 14:07:26 2016 -0400

----------------------------------------------------------------------
 .../apache/tinkerpop/gremlin/process/remote/RemoteGraph.java   | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/2bf4489d/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/remote/RemoteGraph.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/remote/RemoteGraph.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/remote/RemoteGraph.java
index c3defee..03b2890 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/remote/RemoteGraph.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/remote/RemoteGraph.java
@@ -29,6 +29,7 @@ import org.apache.tinkerpop.gremlin.structure.Graph;
 import org.apache.tinkerpop.gremlin.structure.Transaction;
 import org.apache.tinkerpop.gremlin.structure.Vertex;
 import org.apache.tinkerpop.gremlin.structure.util.GraphFactory;
+import org.apache.tinkerpop.gremlin.structure.util.StringFactory;
 import org.apache.tinkerpop.gremlin.structure.util.empty.EmptyGraph;
 
 import java.lang.reflect.Constructor;
@@ -193,6 +194,11 @@ public class RemoteGraph implements Graph {
         return RemoteFeatures.INSTANCE;
     }
 
+    @Override
+    public String toString() {
+        return StringFactory.graphString(this, connection.toString());
+    }
+
     public static class RemoteFeatures implements Features {
         static RemoteFeatures INSTANCE = new RemoteFeatures();