Skip to content

Commit edfb18a

Browse files
author
Andrey Turbanov
committed
8294695: Remove redundant deprecation suppression in ThreadGroup
Reviewed-by: alanb, jpai
1 parent 46633e6 commit edfb18a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/java.base/share/classes/java/lang/ThreadGroup.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,6 @@ public final void checkAccess() {
375375
public int activeCount() {
376376
int n = 0;
377377
for (Thread thread : Thread.getAllThreads()) {
378-
@SuppressWarnings("deprecation")
379378
ThreadGroup g = thread.getThreadGroup();
380379
if (parentOf(g)) {
381380
n++;
@@ -446,7 +445,6 @@ public int enumerate(Thread[] list, boolean recurse) {
446445
int n = 0;
447446
if (list.length > 0) {
448447
for (Thread thread : Thread.getAllThreads()) {
449-
@SuppressWarnings("deprecation")
450448
ThreadGroup g = thread.getThreadGroup();
451449
if (g == this || (recurse && parentOf(g))) {
452450
list[n++] = thread;
@@ -582,7 +580,6 @@ public final void stop() {
582580
public final void interrupt() {
583581
checkAccess();
584582
for (Thread thread : Thread.getAllThreads()) {
585-
@SuppressWarnings("deprecation")
586583
ThreadGroup g = thread.getThreadGroup();
587584
if (parentOf(g)) {
588585
thread.interrupt();

0 commit comments

Comments
 (0)