From 44087ea5d697deb3a7dd0e3c82f898dd9df1bfa3 Mon Sep 17 00:00:00 2001 From: SendaoYan Date: Mon, 17 Nov 2025 13:48:52 +0000 Subject: [PATCH] 8371682: Suppress javac warning from ThreadPoolExecutorSubclassTest.java Reviewed-by: jpai --- .../java/util/concurrent/tck/ExecutorsTest.java | 1 - .../java/util/concurrent/tck/JSR166TestCase.java | 1 - .../tck/ThreadPoolExecutorSubclassTest.java | 15 --------------- 3 files changed, 17 deletions(-) diff --git a/test/jdk/java/util/concurrent/tck/ExecutorsTest.java b/test/jdk/java/util/concurrent/tck/ExecutorsTest.java index b4b4324ae5c..91dfd3cce1c 100644 --- a/test/jdk/java/util/concurrent/tck/ExecutorsTest.java +++ b/test/jdk/java/util/concurrent/tck/ExecutorsTest.java @@ -329,7 +329,6 @@ public class ExecutorsTest extends JSR166TestCase { * ThreadPoolExecutor using defaultThreadFactory has * specified group, priority, daemon status, and name */ - @SuppressWarnings("removal") public void testDefaultThreadFactory() throws Exception { final ThreadGroup egroup = Thread.currentThread().getThreadGroup(); final CountDownLatch done = new CountDownLatch(1); diff --git a/test/jdk/java/util/concurrent/tck/JSR166TestCase.java b/test/jdk/java/util/concurrent/tck/JSR166TestCase.java index 80e6c98bfa7..f1f32bee310 100644 --- a/test/jdk/java/util/concurrent/tck/JSR166TestCase.java +++ b/test/jdk/java/util/concurrent/tck/JSR166TestCase.java @@ -1169,7 +1169,6 @@ public class JSR166TestCase extends TestCase { * A debugging tool to print stack traces of most threads, as jstack does. * Uninteresting threads are filtered out. */ - @SuppressWarnings("removal") static void dumpTestThreads() { System.err.println("------ stacktrace dump start ------"); for (ThreadInfo info : THREAD_MXBEAN.dumpAllThreads(true, true)) diff --git a/test/jdk/java/util/concurrent/tck/ThreadPoolExecutorSubclassTest.java b/test/jdk/java/util/concurrent/tck/ThreadPoolExecutorSubclassTest.java index dec00360f60..5f117fd5e85 100644 --- a/test/jdk/java/util/concurrent/tck/ThreadPoolExecutorSubclassTest.java +++ b/test/jdk/java/util/concurrent/tck/ThreadPoolExecutorSubclassTest.java @@ -1997,20 +1997,5 @@ public class ThreadPoolExecutorSubclassTest extends JSR166TestCase { } } } - @SuppressWarnings("deprecation") - public void testFinalizeMethodCallsSuperFinalize() { - new CustomTPE(1, 1, - LONG_DELAY_MS, MILLISECONDS, - new LinkedBlockingQueue()) { - - /** - * A finalize method without "throws Throwable", that - * calls super.finalize(). - */ - protected void finalize() { - super.finalize(); - } - }.shutdown(); - } }