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 23:44:06 UTC

[33/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/9b61108f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/9b61108f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/9b61108f

Branch: refs/heads/TINKERPOP-575
Commit: 9b61108f667e88ab225b58311149d0c30bd9818e
Parents: e05e4a8
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 17:01:35 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/9b61108f/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();