mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +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.
|
||||
*
|
||||
* 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
|
||||
* this exception. The following code can be used to achieve
|
||||
* this effect:
|
||||
* <pre>
|
||||
* if (Thread.interrupted()) // Clears interrupted status!
|
||||
* throw new InterruptedException();
|
||||
* </pre>
|
||||
* {@snippet lang=java :
|
||||
* if (Thread.interrupted()) // Clears interrupted status!
|
||||
* throw new InterruptedException();
|
||||
* }
|
||||
*
|
||||
* @author Frank Yellin
|
||||
* @see java.lang.Object#wait()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue