mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 23:34:52 +02:00
8287353: Use snippet tag instead of pre tag in Javadoc of InterruptedException
Reviewed-by: jpai
This commit is contained in:
parent
32dd1eef88
commit
7df48f97d2
1 changed files with 5 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1995, 2019, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1995, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -32,10 +32,10 @@ package java.lang;
|
||||||
* thread has been interrupted, and if so, to immediately throw
|
* thread has been interrupted, and if so, to immediately throw
|
||||||
* this exception. The following code can be used to achieve
|
* this exception. The following code can be used to achieve
|
||||||
* this effect:
|
* this effect:
|
||||||
* <pre>
|
* {@snippet lang=java :
|
||||||
* if (Thread.interrupted()) // Clears interrupted status!
|
* if (Thread.interrupted()) // Clears interrupted status!
|
||||||
* throw new InterruptedException();
|
* throw new InterruptedException();
|
||||||
* </pre>
|
* }
|
||||||
*
|
*
|
||||||
* @author Frank Yellin
|
* @author Frank Yellin
|
||||||
* @see java.lang.Object#wait()
|
* @see java.lang.Object#wait()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue