mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8294695: Remove redundant deprecation suppression in ThreadGroup
Reviewed-by: alanb, jpai
This commit is contained in:
parent
46633e644a
commit
edfb18a724
1 changed files with 0 additions and 3 deletions
|
@ -375,7 +375,6 @@ public class ThreadGroup implements Thread.UncaughtExceptionHandler {
|
|||
public int activeCount() {
|
||||
int n = 0;
|
||||
for (Thread thread : Thread.getAllThreads()) {
|
||||
@SuppressWarnings("deprecation")
|
||||
ThreadGroup g = thread.getThreadGroup();
|
||||
if (parentOf(g)) {
|
||||
n++;
|
||||
|
@ -446,7 +445,6 @@ public class ThreadGroup implements Thread.UncaughtExceptionHandler {
|
|||
int n = 0;
|
||||
if (list.length > 0) {
|
||||
for (Thread thread : Thread.getAllThreads()) {
|
||||
@SuppressWarnings("deprecation")
|
||||
ThreadGroup g = thread.getThreadGroup();
|
||||
if (g == this || (recurse && parentOf(g))) {
|
||||
list[n++] = thread;
|
||||
|
@ -582,7 +580,6 @@ public class ThreadGroup implements Thread.UncaughtExceptionHandler {
|
|||
public final void interrupt() {
|
||||
checkAccess();
|
||||
for (Thread thread : Thread.getAllThreads()) {
|
||||
@SuppressWarnings("deprecation")
|
||||
ThreadGroup g = thread.getThreadGroup();
|
||||
if (parentOf(g)) {
|
||||
thread.interrupt();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue