Skip to content
Snippets Groups Projects
Commit 2961d61c authored by Christian Wulf's avatar Christian Wulf
Browse files

minor refactoring

parent 1806362e
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@ public final class EveryXthPrinter<T> extends AbstractCompositeStage {
private final List<Stage> lastStages = new ArrayList<Stage>();
public EveryXthPrinter(final int threshold) {
distributor = new Distributor<T>();
distributor = new Distributor<T>(new CopyByReferenceStrategy());
EveryXthStage<T> everyXthStage = new EveryXthStage<T>(threshold);
Printer<Integer> printer = new Printer<Integer>();
......@@ -40,7 +40,6 @@ public final class EveryXthPrinter<T> extends AbstractCompositeStage {
connectPorts(everyXthStage.getOutputPort(), printer.getInputPort());
lastStages.add(printer);
distributor.setStrategy(new CopyByReferenceStrategy());
}
public InputPort<T> getInputPort() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment