Skip to content

Commit 44087ea

Browse files
author
SendaoYan
committed
8371682: Suppress javac warning from ThreadPoolExecutorSubclassTest.java
Reviewed-by: jpai
1 parent 960987e commit 44087ea

File tree

3 files changed

+0
-17
lines changed

3 files changed

+0
-17
lines changed

test/jdk/java/util/concurrent/tck/ExecutorsTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,6 @@ public void realRun() {
329329
* ThreadPoolExecutor using defaultThreadFactory has
330330
* specified group, priority, daemon status, and name
331331
*/
332-
@SuppressWarnings("removal")
333332
public void testDefaultThreadFactory() throws Exception {
334333
final ThreadGroup egroup = Thread.currentThread().getThreadGroup();
335334
final CountDownLatch done = new CountDownLatch(1);

test/jdk/java/util/concurrent/tck/JSR166TestCase.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1169,7 +1169,6 @@ static boolean threadOfInterest(ThreadInfo info) {
11691169
* A debugging tool to print stack traces of most threads, as jstack does.
11701170
* Uninteresting threads are filtered out.
11711171
*/
1172-
@SuppressWarnings("removal")
11731172
static void dumpTestThreads() {
11741173
System.err.println("------ stacktrace dump start ------");
11751174
for (ThreadInfo info : THREAD_MXBEAN.dumpAllThreads(true, true))

test/jdk/java/util/concurrent/tck/ThreadPoolExecutorSubclassTest.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1997,20 +1997,5 @@ public void testGet_cancelled() throws Exception {
19971997
}
19981998
}
19991999
}
2000-
@SuppressWarnings("deprecation")
2001-
public void testFinalizeMethodCallsSuperFinalize() {
2002-
new CustomTPE(1, 1,
2003-
LONG_DELAY_MS, MILLISECONDS,
2004-
new LinkedBlockingQueue<Runnable>()) {
2005-
2006-
/**
2007-
* A finalize method without "throws Throwable", that
2008-
* calls super.finalize().
2009-
*/
2010-
protected void finalize() {
2011-
super.finalize();
2012-
}
2013-
}.shutdown();
2014-
}
20152000

20162001
}

0 commit comments

Comments
 (0)