8371682: Suppress javac warning from ThreadPoolExecutorSubclassTest.java

Reviewed-by: jpai
This commit is contained in:
SendaoYan 2025-11-17 13:48:52 +00:00
parent 960987e8c1
commit 44087ea5d6
3 changed files with 0 additions and 17 deletions

View File

@ -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);

View File

@ -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))

View File

@ -1997,20 +1997,5 @@ public class ThreadPoolExecutorSubclassTest extends JSR166TestCase {
}
}
}
@SuppressWarnings("deprecation")
public void testFinalizeMethodCallsSuperFinalize() {
new CustomTPE(1, 1,
LONG_DELAY_MS, MILLISECONDS,
new LinkedBlockingQueue<Runnable>()) {
/**
* A finalize method without "throws Throwable", that
* calls super.finalize().
*/
protected void finalize() {
super.finalize();
}
}.shutdown();
}
}