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/03/27 17:09:35 UTC

[06/22] incubator-tinkerpop git commit: Add toString() for nicer output in console on the ConsoleMutationListener.

Add toString() for nicer output in console on the ConsoleMutationListener.


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

Branch: refs/heads/variables
Commit: cada5f388c11c4837f2eca84abb9ba8a9fba401e
Parents: ea51641
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Fri Mar 27 08:42:29 2015 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Fri Mar 27 08:42:29 2015 -0400

----------------------------------------------------------------------
 .../traversal/step/util/event/ConsoleMutationListener.java      | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/cada5f38/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/util/event/ConsoleMutationListener.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/util/event/ConsoleMutationListener.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/util/event/ConsoleMutationListener.java
index a454d46..a45b195 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/util/event/ConsoleMutationListener.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/util/event/ConsoleMutationListener.java
@@ -86,4 +86,9 @@ public class ConsoleMutationListener implements MutationListener {
     public void vertexPropertyChanged(final Vertex element, final Property oldValue, final Object setValue, final Object... vertexPropertyKeyValues) {
         System.out.println("Vertex [" + element.toString() + "] property [" + oldValue + "] change to [" + setValue + "] in graph [" + graph.toString() + "]");
     }
+
+    @Override
+    public String toString() {
+        return MutationListener.class.getSimpleName() + "[" + graph + "]";
+    }
 }