diff --git a/lucene/core/src/java/org/apache/lucene/search/TaskExecutor.java b/lucene/core/src/java/org/apache/lucene/search/TaskExecutor.java index 5a0447acd0b..2763a9800e8 100644 --- a/lucene/core/src/java/org/apache/lucene/search/TaskExecutor.java +++ b/lucene/core/src/java/org/apache/lucene/search/TaskExecutor.java @@ -107,7 +107,6 @@ public final class TaskExecutor { } RunnableFuture createTask(Callable callable) { - // -1: cancelled; 0: not yet started; 1: started AtomicBoolean startedOrCancelled = new AtomicBoolean(false); return new FutureTask<>( () -> {