mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8230648: Replace @exception tag with @throws in java.base
Minor coding style update of javadoc tag in any file in java.base Reviewed-by: prappo, lancea
This commit is contained in:
parent
2fc6c6459d
commit
b15b322cf3
196 changed files with 1959 additions and 1962 deletions
|
@ -177,7 +177,7 @@ public abstract class InputStream implements Closeable {
|
|||
*
|
||||
* @return the next byte of data, or <code>-1</code> if the end of the
|
||||
* stream is reached.
|
||||
* @exception IOException if an I/O error occurs.
|
||||
* @throws IOException if an I/O error occurs.
|
||||
*/
|
||||
public abstract int read() throws IOException;
|
||||
|
||||
|
@ -208,10 +208,10 @@ public abstract class InputStream implements Closeable {
|
|||
* @return the total number of bytes read into the buffer, or
|
||||
* <code>-1</code> if there is no more data because the end of
|
||||
* the stream has been reached.
|
||||
* @exception IOException If the first byte cannot be read for any reason
|
||||
* other than the end of the file, if the input stream has been closed, or
|
||||
* if some other I/O error occurs.
|
||||
* @exception NullPointerException if <code>b</code> is <code>null</code>.
|
||||
* @throws IOException If the first byte cannot be read for any reason
|
||||
* other than the end of the file, if the input stream has been
|
||||
* closed, or if some other I/O error occurs.
|
||||
* @throws NullPointerException if <code>b</code> is <code>null</code>.
|
||||
* @see java.io.InputStream#read(byte[], int, int)
|
||||
*/
|
||||
public int read(byte b[]) throws IOException {
|
||||
|
@ -266,13 +266,13 @@ public abstract class InputStream implements Closeable {
|
|||
* @return the total number of bytes read into the buffer, or
|
||||
* <code>-1</code> if there is no more data because the end of
|
||||
* the stream has been reached.
|
||||
* @exception IOException If the first byte cannot be read for any reason
|
||||
* other than end of file, or if the input stream has been closed, or if
|
||||
* some other I/O error occurs.
|
||||
* @exception NullPointerException If <code>b</code> is <code>null</code>.
|
||||
* @exception IndexOutOfBoundsException If <code>off</code> is negative,
|
||||
* <code>len</code> is negative, or <code>len</code> is greater than
|
||||
* <code>b.length - off</code>
|
||||
* @throws IOException If the first byte cannot be read for any reason
|
||||
* other than end of file, or if the input stream has been closed,
|
||||
* or if some other I/O error occurs.
|
||||
* @throws NullPointerException If <code>b</code> is <code>null</code>.
|
||||
* @throws IndexOutOfBoundsException If <code>off</code> is negative,
|
||||
* <code>len</code> is negative, or <code>len</code> is greater than
|
||||
* <code>b.length - off</code>
|
||||
* @see java.io.InputStream#read()
|
||||
*/
|
||||
public int read(byte b[], int off, int len) throws IOException {
|
||||
|
@ -634,7 +634,7 @@ public abstract class InputStream implements Closeable {
|
|||
* @return an estimate of the number of bytes that can be read (or
|
||||
* skipped over) from this input stream without blocking or
|
||||
* {@code 0} when it reaches the end of the input stream.
|
||||
* @exception IOException if an I/O error occurs.
|
||||
* @throws IOException if an I/O error occurs.
|
||||
*/
|
||||
public int available() throws IOException {
|
||||
return 0;
|
||||
|
@ -647,7 +647,7 @@ public abstract class InputStream implements Closeable {
|
|||
* <p> The <code>close</code> method of <code>InputStream</code> does
|
||||
* nothing.
|
||||
*
|
||||
* @exception IOException if an I/O error occurs.
|
||||
* @throws IOException if an I/O error occurs.
|
||||
*/
|
||||
public void close() throws IOException {}
|
||||
|
||||
|
@ -718,8 +718,8 @@ public abstract class InputStream implements Closeable {
|
|||
* <p>The method <code>reset</code> for class <code>InputStream</code>
|
||||
* does nothing except throw an <code>IOException</code>.
|
||||
*
|
||||
* @exception IOException if this stream has not been marked or if the
|
||||
* mark has been invalidated.
|
||||
* @throws IOException if this stream has not been marked or if the
|
||||
* mark has been invalidated.
|
||||
* @see java.io.InputStream#mark(int)
|
||||
* @see java.io.IOException
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue