Prevent "expensive" operation of filling in a stack trace for signals

This commit is contained in:
Lukas Eder 2013-05-01 11:11:59 +02:00
parent 7822c93e64
commit 2f6e09294c

View File

@ -73,4 +73,12 @@ public class ControlFlowSignal extends RuntimeException {
public ControlFlowSignal(String message) {
super(message);
}
@SuppressWarnings("sync-override")
@Override
public Throwable fillInStackTrace() {
// Prevent "expensive" operation of filling in a stack trace for signals
return this;
}
}