Skip to content
Browse files

Simplified PipesFluentPipeline interface.

  • Loading branch information...
1 parent a2aa669 commit 1fea36731e26919cefe509c613fb3c22f5ba1b82 @okram okram committed Apr 4, 2012
View
2 src/main/java/com/tinkerpop/pipes/branch/CopySplitPipe.java
@@ -26,7 +26,7 @@ public CopySplitPipe(final List<Pipe> pipes) {
for (final Pipe pipe : pipes) {
if (pipe instanceof Pipeline) {
((Pipeline) pipe).addPipe(0, new CopyExpandablePipe<S>(this));
- this.pipes.add((Pipeline)pipe);
+ this.pipes.add((Pipeline) pipe);
} else {
final Pipeline<S, ?> pipeline = new Pipeline<S, Object>();
pipeline.addPipe(new CopyExpandablePipe<S>(this));
View
2 src/main/java/com/tinkerpop/pipes/branch/ExhaustMergePipe.java
@@ -5,8 +5,6 @@
import com.tinkerpop.pipes.util.MetaPipe;
import com.tinkerpop.pipes.util.PipeHelper;
-import java.util.Arrays;
-import java.util.Iterator;
import java.util.List;
import java.util.NoSuchElementException;
View
8 src/main/java/com/tinkerpop/pipes/branch/FairMergePipe.java
@@ -34,13 +34,7 @@ public S processNextStart() {
this.current = (this.current + 1) % this.total;
return s;
} else if (counter == this.total) {
- boolean quit = true;
- for (Pipe pipe : this.pipes) {
- if (pipe.hasNext())
- quit = false;
- }
- if (quit)
- throw new NoSuchElementException();
+ throw new NoSuchElementException();
} else {
this.current = (this.current + 1) % this.total;
}

0 comments on commit 1fea367

Please sign in to comment.
Something went wrong with that request. Please try again.