Disables TimeoutException.fillInStackTrace()

This commit is contained in:
Spencer Gibb
2018-12-21 11:33:03 -05:00
parent 383a204bcf
commit b4a9bff655

View File

@@ -30,4 +30,13 @@ public class TimeoutException extends Exception {
public TimeoutException(String message) {
super(message);
}
/**
* Disables fillInStackTrace for performance reasons.
* @return
*/
@Override
public synchronized Throwable fillInStackTrace() {
return this;
}
}