8231602: Deprecate Thread.suspend/resume for removal

Reviewed-by: mchung, dholmes, chegar
This commit is contained in:
Alan Bateman 2019-10-24 11:07:31 +01:00
parent 06d37a2754
commit e69b4d261d
2 changed files with 8 additions and 8 deletions

View file

@ -1075,7 +1075,7 @@ class Thread implements Runnable {
* <a href="{@docRoot}/java.base/java/lang/doc-files/threadPrimitiveDeprecation.html">Why
* are Thread.stop, Thread.suspend and Thread.resume Deprecated?</a>.
*/
@Deprecated(since="1.2")
@Deprecated(since="1.2", forRemoval=true)
public final void suspend() {
checkAccess();
suspend0();
@ -1101,7 +1101,7 @@ class Thread implements Runnable {
* <a href="{@docRoot}/java.base/java/lang/doc-files/threadPrimitiveDeprecation.html">Why
* are Thread.stop, Thread.suspend and Thread.resume Deprecated?</a>.
*/
@Deprecated(since="1.2")
@Deprecated(since="1.2", forRemoval=true)
public final void resume() {
checkAccess();
resume0();