You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by ok...@apache.org on 2016/11/01 21:46:53 UTC
tinkerpop git commit: minor nothings -- final and better argument
name.
Repository: tinkerpop
Updated Branches:
refs/heads/TINKERPOP-1211 b0b65582d -> 010853398
minor nothings -- final and better argument name.
Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/01085339
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/01085339
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/01085339
Branch: refs/heads/TINKERPOP-1211
Commit: 01085339877e1931f66cff3a2b358513e7c09c15
Parents: b0b6558
Author: Marko A. Rodriguez <ok...@gmail.com>
Authored: Tue Nov 1 15:46:49 2016 -0600
Committer: Marko A. Rodriguez <ok...@gmail.com>
Committed: Tue Nov 1 15:46:49 2016 -0600
----------------------------------------------------------------------
.../process/traversal/step/map/UnfoldStep.java | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/01085339/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/UnfoldStep.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/UnfoldStep.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/UnfoldStep.java
index c96f414..cb4164c 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/UnfoldStep.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/UnfoldStep.java
@@ -59,15 +59,15 @@ public final class UnfoldStep<S, E> extends FlatMapStep<S, E> {
return Collections.singleton(TraverserRequirement.OBJECT);
}
- private final Iterator<E> handleArrays(Object obj) {
- if (obj instanceof Object[]) {
- return new ArrayIterator<>((E[]) obj);
+ private final Iterator<E> handleArrays(final Object array) {
+ if (array instanceof Object[]) {
+ return new ArrayIterator<>((E[]) array);
} else {
- int len = Array.getLength(obj);
- final Object[] out = new Object[len];
+ int len = Array.getLength(array);
+ final Object[] objectArray = new Object[len];
for (int i = 0; i < len; i++)
- out[i] = Array.get(obj, i);
- return new ArrayIterator<>((E[]) out);
+ objectArray[i] = Array.get(array, i);
+ return new ArrayIterator<>((E[]) objectArray);
}
}
}