Skip to content

Commit fde0b95

Browse files
author
Alan Bateman
committedDec 1, 2021
8277861: Terminally deprecate Thread.stop
Reviewed-by: rriggs, mchung, uschindler, dholmes
1 parent 70d5dff commit fde0b95

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 

‎src/java.base/share/classes/java/lang/Thread.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ private void exit() {
922922
* <a href="{@docRoot}/java.base/java/lang/doc-files/threadPrimitiveDeprecation.html">Why
923923
* are Thread.stop, Thread.suspend and Thread.resume Deprecated?</a>.
924924
*/
925-
@Deprecated(since="1.2")
925+
@Deprecated(since="1.2", forRemoval=true)
926926
public final void stop() {
927927
@SuppressWarnings("removal")
928928
SecurityManager security = System.getSecurityManager();

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

+1
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,7 @@ private int enumerate(ThreadGroup[] list, int n, boolean recurse) {
628628
* {@link Thread#stop} for details.
629629
*/
630630
@Deprecated(since="1.2", forRemoval=true)
631+
@SuppressWarnings("removal")
631632
public final void stop() {
632633
if (stopOrSuspend(false))
633634
Thread.currentThread().stop();

0 commit comments

Comments
 (0)
Please sign in to comment.