mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8231602: Deprecate Thread.suspend/resume for removal
Reviewed-by: mchung, dholmes, chegar
This commit is contained in:
parent
06d37a2754
commit
e69b4d261d
2 changed files with 8 additions and 8 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue