tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ok...@apache.org
Subject [50/50] [abbrv] incubator-tinkerpop git commit: Provided a better exception when not supplying the correct number of key/values to a Parameters. Fixed #TINKERPOP-1324. CTR.
Date Wed, 08 Jun 2016 13:33:50 GMT
Provided a better exception when not supplying the correct number of key/values to a Parameters.
Fixed #TINKERPOP-1324. CTR.


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

Branch: refs/heads/tp31
Commit: 913c9074682655c0d8c58896ecd846b509811731
Parents: af98ba1
Author: Marko A. Rodriguez <okrammarko@gmail.com>
Authored: Wed Jun 8 07:32:25 2016 -0600
Committer: Marko A. Rodriguez <okrammarko@gmail.com>
Committed: Wed Jun 8 07:32:36 2016 -0600

----------------------------------------------------------------------
 .../tinkerpop/gremlin/process/traversal/step/util/Parameters.java  | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/913c9074/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/util/Parameters.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/util/Parameters.java
b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/util/Parameters.java
index f98e616..b6d563e 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/util/Parameters.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/util/Parameters.java
@@ -24,6 +24,7 @@ import org.apache.tinkerpop.gremlin.process.traversal.Traversal;
 import org.apache.tinkerpop.gremlin.process.traversal.Traverser;
 import org.apache.tinkerpop.gremlin.process.traversal.step.TraversalParent;
 import org.apache.tinkerpop.gremlin.process.traversal.util.TraversalUtil;
+import org.apache.tinkerpop.gremlin.structure.util.ElementHelper;
 
 import java.io.Serializable;
 import java.util.ArrayList;
@@ -133,6 +134,7 @@ public final class Parameters implements Cloneable, Serializable {
      * Set parameters given key/value pairs.
      */
     public void set(final Object... keyValues) {
+        ElementHelper.legalPropertyKeyValueArray(keyValues);
         for (int i = 0; i < keyValues.length; i = i + 2) {
             if (keyValues[i + 1] != null) {
                 List<Object> values = this.parameters.get(keyValues[i]);


Mime
View raw message