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/06/24 23:37:08 UTC

incubator-tinkerpop git commit: Fixed runtime compile error in Gephi plugin.

Repository: incubator-tinkerpop
Updated Branches:
  refs/heads/master 7a4c7559d -> 2bc09fc70


Fixed runtime compile error in Gephi plugin.

Added a CompileStatic annotation to try to catch these problems - we've had problems with this exact class in the exact same place before after refactoring Traversal.


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

Branch: refs/heads/master
Commit: 2bc09fc70fa2bcf7256afdda44ea0c3b0e2d1fe5
Parents: 7a4c755
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Wed Jun 24 17:35:59 2015 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Wed Jun 24 17:35:59 2015 -0400

----------------------------------------------------------------------
 .../tinkerpop/gremlin/console/plugin/GephiRemoteAcceptor.groovy | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/2bc09fc7/gremlin-console/src/main/groovy/org/apache/tinkerpop/gremlin/console/plugin/GephiRemoteAcceptor.groovy
----------------------------------------------------------------------
diff --git a/gremlin-console/src/main/groovy/org/apache/tinkerpop/gremlin/console/plugin/GephiRemoteAcceptor.groovy b/gremlin-console/src/main/groovy/org/apache/tinkerpop/gremlin/console/plugin/GephiRemoteAcceptor.groovy
index fffa28c..5ab7182 100644
--- a/gremlin-console/src/main/groovy/org/apache/tinkerpop/gremlin/console/plugin/GephiRemoteAcceptor.groovy
+++ b/gremlin-console/src/main/groovy/org/apache/tinkerpop/gremlin/console/plugin/GephiRemoteAcceptor.groovy
@@ -18,6 +18,7 @@
  */
 package org.apache.tinkerpop.gremlin.console.plugin
 
+import groovy.transform.CompileStatic
 import org.apache.tinkerpop.gremlin.groovy.plugin.RemoteAcceptor
 import org.apache.tinkerpop.gremlin.groovy.plugin.RemoteException
 import org.apache.tinkerpop.gremlin.process.traversal.Traversal
@@ -181,6 +182,7 @@ class GephiRemoteAcceptor implements RemoteAcceptor {
     }
 
     @Override
+    @CompileStatic
     Object submit(final List<String> args) throws RemoteException {
         final String line = String.join(" ", args)
         final Object o = shell.execute(line)
@@ -202,7 +204,7 @@ class GephiRemoteAcceptor implements RemoteAcceptor {
                     updateVisitedVertices()
                     int visitedCount = 0
 
-                    if (traversal.getSideEffects().exists(stepKey)) {
+                    if (traversal.getSideEffects().keys().contains(stepKey)) {
                         traversal.getSideEffects().get(stepKey).each { element ->
                             visitVertexToGephi((Vertex) element)
                             visitedCount++
@@ -268,6 +270,7 @@ class GephiRemoteAcceptor implements RemoteAcceptor {
         }
     }
 
+    @CompileStatic
     def addEdgeToGephi(def GraphTraversalSource g, def Edge e) {
         def props = g.E(e).valueMap().next()
         props.put('label', e.label())