mirror of https://github.com/apache/lucene.git
Don't generate stacktrace for TimeExceededException (#12335)
The exception is package private and never rethrown, we can avoid generating a stacktrace for it.
This commit is contained in:
parent
d1850e44f3
commit
72b91156f3
|
@ -41,6 +41,12 @@ final class TimeLimitingBulkScorer extends BulkScorer {
|
||||||
private TimeExceededException() {
|
private TimeExceededException() {
|
||||||
super("TimeLimit Exceeded");
|
super("TimeLimit Exceeded");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Throwable fillInStackTrace() {
|
||||||
|
// never re-thrown so we can save the expensive stacktrace
|
||||||
|
return this;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private final BulkScorer in;
|
private final BulkScorer in;
|
||||||
|
|
Loading…
Reference in New Issue