mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8277861: Terminally deprecate Thread.stop
Reviewed-by: rriggs, mchung, uschindler, dholmes
This commit is contained in:
parent
70d5dffb4e
commit
fde0b95ede
2 changed files with 2 additions and 1 deletions
|
@ -628,6 +628,7 @@ public class ThreadGroup implements Thread.UncaughtExceptionHandler {
|
|||
* {@link Thread#stop} for details.
|
||||
*/
|
||||
@Deprecated(since="1.2", forRemoval=true)
|
||||
@SuppressWarnings("removal")
|
||||
public final void stop() {
|
||||
if (stopOrSuspend(false))
|
||||
Thread.currentThread().stop();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue