Commit 5177e03d authored by Christian Wulf's avatar Christian Wulf

added a producer which declares a field outputPort

parent e0af085c
......@@ -108,6 +108,19 @@ public class AbstractProducerStageTest {
}
}
@SuppressWarnings("unused")
private static class ShadowingProducer<O> extends AbstractProducerStage<O> {
// Hides the field of the same name in the super type.
// This must be detected by some QA tool, e.g., PMD.
private final OutputPort<O> outputPort = super.createOutputPort();
@Override
protected void execute() throws Exception {
// do nothing
}
}
/*
* Use a t/o since the execution may not block infinitely;
* expected execution time is 500 ms, so the t/o should be sufficiently high
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment