mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 03:58:21 +00:00
8371682: Suppress javac warning from ThreadPoolExecutorSubclassTest.java
Reviewed-by: jpai
This commit is contained in:
parent
960987e8c1
commit
44087ea5d6
@ -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);
|
||||
|
||||
@ -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))
|
||||
|
||||
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user