mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-14 20:35:09 +00:00
8320786: Remove ThreadGroup.stop
Reviewed-by: rriggs, dholmes, jpai
This commit is contained in:
parent
af5c49226c
commit
86623aa41d
@ -554,17 +554,6 @@ public class ThreadGroup implements Thread.UncaughtExceptionHandler {
|
||||
return i;
|
||||
}
|
||||
|
||||
/**
|
||||
* Throws {@code UnsupportedOperationException}.
|
||||
*
|
||||
* @deprecated This method was originally specified to stop all threads in
|
||||
* the thread group. It was inherently unsafe.
|
||||
*/
|
||||
@Deprecated(since="1.2", forRemoval=true)
|
||||
public final void stop() {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
/**
|
||||
* Interrupts all {@linkplain Thread#isAlive() live} platform threads in
|
||||
* this thread group and its subgroups.
|
||||
|
||||
@ -732,12 +732,6 @@ class BasicTests {
|
||||
group.list();
|
||||
}
|
||||
|
||||
@Test
|
||||
void testStop() {
|
||||
ThreadGroup group = new ThreadGroup("foo");
|
||||
assertThrows(UnsupportedOperationException.class, () -> group.stop());
|
||||
}
|
||||
|
||||
@Test
|
||||
void testNull1() {
|
||||
assertThrows(NullPointerException.class,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user