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

fixed some checkstyle issues

parent 5e4c7249
No related branches found
No related tags found
No related merge requests found
......@@ -10,10 +10,10 @@ public abstract class AbstractIntraThreadPipe extends AbstractPipe {
}
@Override
public void sendSignal(final ISignal signal) {
if (this.getTargetPort() != null) { // BETTER remove this check since there are DummyPorts
this.cachedTargetStage.onSignal(signal, this.getTargetPort());
}
public final void sendSignal(final ISignal signal) {
// if (this.getTargetPort() != null) { // BETTER remove this check since there are DummyPorts
this.cachedTargetStage.onSignal(signal, this.getTargetPort());
// }
}
@Override
......
......@@ -9,18 +9,20 @@ public final class OutputPort<T> extends AbstractPort<T> {
}
/**
*
* @param element
* @return <code>true</code> iff the given <code>element</code> could be sent, <code>false</code> otherwise (then use a re-try strategy)
* to be sent
*/
public boolean send(final T element) {
boolean added = this.pipe.add(element);
if (added) {
public void send(final T element) {
if (this.pipe.add(element)) {
this.pipe.reportNewElement();
}
return added;
}
/**
*
* @param signal
* to be sent
*/
public void sendSignal(final ISignal signal) {
this.pipe.sendSignal(signal);
}
......
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