From 872702d828fd4b477412903b9bc69d35b3bd387d Mon Sep 17 00:00:00 2001 From: Andrew Ross Date: Wed, 10 Jan 2024 03:35:23 -0600 Subject: [PATCH] Remove outdated comment from TaskExecutor (#12993) A previous iteration of this code used an AtomicInteger and required this comment. The committed version uses a self-documenting boolean and the comment is not needed. --- lucene/core/src/java/org/apache/lucene/search/TaskExecutor.java | 1 - 1 file changed, 1 deletion(-) 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<>( () -> {