This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 23f038af8b Fix backport
23f038af8b is described below
commit 23f038af8baff4c51388bc51a59a5316dbc5822a
Author: Mark Thomas <[email protected]>
AuthorDate: Wed Nov 4 17:28:46 2026 +0000
Fix backport
---
test/org/apache/tomcat/util/threads/TestThreadPoolExecutor.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/org/apache/tomcat/util/threads/TestThreadPoolExecutor.java
b/test/org/apache/tomcat/util/threads/TestThreadPoolExecutor.java
index 657a6b1be7..4957f73152 100644
--- a/test/org/apache/tomcat/util/threads/TestThreadPoolExecutor.java
+++ b/test/org/apache/tomcat/util/threads/TestThreadPoolExecutor.java
@@ -284,7 +284,7 @@ public class TestThreadPoolExecutor {
ThreadPoolExecutor pool = new ThreadPoolExecutor(1, 1, 60,
TimeUnit.SECONDS, queue,
Executors.defaultThreadFactory());
queue.setParent(pool);
- FutureTask<Void> cancelled = new FutureTask<>(() -> null) {
+ FutureTask<Void> cancelled = new FutureTask<Void>(() -> null) {
@Override
public boolean isCancelled() {
// The worker processes the cancelled future before starting
the second task.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]