tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ok...@apache.org
Subject [2/4] incubator-tinkerpop git commit: Neo4jGraphStep needed a valid hashCode().
Date Thu, 17 Mar 2016 19:12:35 GMT
Neo4jGraphStep needed a valid hashCode().


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

Branch: refs/heads/master
Commit: 90e5ca3f3b0d006d42894316db3c0839bd92c583
Parents: 53ecadd
Author: Marko A. Rodriguez <okrammarko@gmail.com>
Authored: Wed Mar 16 09:29:41 2016 -0600
Committer: Marko A. Rodriguez <okrammarko@gmail.com>
Committed: Wed Mar 16 09:29:41 2016 -0600

----------------------------------------------------------------------
 .../neo4j/process/traversal/step/sideEffect/Neo4jGraphStep.java | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/90e5ca3f/neo4j-gremlin/src/main/java/org/apache/tinkerpop/gremlin/neo4j/process/traversal/step/sideEffect/Neo4jGraphStep.java
----------------------------------------------------------------------
diff --git a/neo4j-gremlin/src/main/java/org/apache/tinkerpop/gremlin/neo4j/process/traversal/step/sideEffect/Neo4jGraphStep.java
b/neo4j-gremlin/src/main/java/org/apache/tinkerpop/gremlin/neo4j/process/traversal/step/sideEffect/Neo4jGraphStep.java
index 3c22567..6b4e9c4 100644
--- a/neo4j-gremlin/src/main/java/org/apache/tinkerpop/gremlin/neo4j/process/traversal/step/sideEffect/Neo4jGraphStep.java
+++ b/neo4j-gremlin/src/main/java/org/apache/tinkerpop/gremlin/neo4j/process/traversal/step/sideEffect/Neo4jGraphStep.java
@@ -77,4 +77,9 @@ public final class Neo4jGraphStep<S, E extends Element> extends GraphStep<S,
E>
     public void addHasContainer(final HasContainer hasContainer) {
         this.hasContainers.add(hasContainer);
     }
+
+    @Override
+    public int hashCode() {
+        return super.hashCode() ^ this.hasContainers.hashCode();
+    }
 }


Mime
View raw message