mirror of https://github.com/apache/lucene.git
Make TimeExceededException members final (#12271)
TimeExceededException has three members that are set within its constructor and never modified. They can be made final.
This commit is contained in:
parent
082c49a9ef
commit
b6100d9787
|
@ -33,9 +33,9 @@ public class TimeLimitingCollector implements Collector {
|
||||||
/** Thrown when elapsed search time exceeds allowed search time. */
|
/** Thrown when elapsed search time exceeds allowed search time. */
|
||||||
@SuppressWarnings("serial")
|
@SuppressWarnings("serial")
|
||||||
public static class TimeExceededException extends RuntimeException {
|
public static class TimeExceededException extends RuntimeException {
|
||||||
private long timeAllowed;
|
private final long timeAllowed;
|
||||||
private long timeElapsed;
|
private final long timeElapsed;
|
||||||
private int lastDocCollected;
|
private final int lastDocCollected;
|
||||||
|
|
||||||
private TimeExceededException(long timeAllowed, long timeElapsed, int lastDocCollected) {
|
private TimeExceededException(long timeAllowed, long timeElapsed, int lastDocCollected) {
|
||||||
super(
|
super(
|
||||||
|
|
Loading…
Reference in New Issue