diff options
| author | Julia Boes <jboes@openjdk.org> | 2019-09-20 11:07:52 +0100 |
|---|---|---|
| committer | Julia Boes <jboes@openjdk.org> | 2019-09-20 11:07:52 +0100 |
| commit | b15b322cf396287b5ae7b8e2a19205791d902fad (patch) | |
| tree | 91c03d816c53f2f39a897978fb3bcc793173ef54 /src/java.base/share/classes/java/net/SocketInputStream.java | |
| parent | 2fc6c6459d4b0c7538787987ee0518b0133e790d (diff) | |
| download | openjdk-b15b322cf396287b5ae7b8e2a19205791d902fad.tar.gz openjdk-b15b322cf396287b5ae7b8e2a19205791d902fad.zip | |
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
Diffstat (limited to 'src/java.base/share/classes/java/net/SocketInputStream.java')
| -rw-r--r-- | src/java.base/share/classes/java/net/SocketInputStream.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/java.base/share/classes/java/net/SocketInputStream.java b/src/java.base/share/classes/java/net/SocketInputStream.java index 878583f7a63..797d8f9d9f4 100644 --- a/src/java.base/share/classes/java/net/SocketInputStream.java +++ b/src/java.base/share/classes/java/net/SocketInputStream.java @@ -86,7 +86,7 @@ class SocketInputStream extends FileInputStream { * @param timeout the read timeout in ms * @return the actual number of bytes read, -1 is * returned when the end of the stream is reached. - * @exception IOException If an I/O error has occurred. + * @throws IOException If an I/O error has occurred. */ private native int socketRead0(FileDescriptor fd, byte b[], int off, int len, @@ -104,7 +104,7 @@ class SocketInputStream extends FileInputStream { * @param timeout the read timeout in ms * @return the actual number of bytes read, -1 is * returned when the end of the stream is reached. - * @exception IOException If an I/O error has occurred. + * @throws IOException If an I/O error has occurred. */ private int socketRead(FileDescriptor fd, byte b[], int off, int len, @@ -118,7 +118,7 @@ class SocketInputStream extends FileInputStream { * @param b the buffer into which the data is read * @return the actual number of bytes read, -1 is * returned when the end of the stream is reached. - * @exception IOException If an I/O error has occurred. + * @throws IOException If an I/O error has occurred. */ public int read(byte b[]) throws IOException { return read(b, 0, b.length); @@ -132,7 +132,7 @@ class SocketInputStream extends FileInputStream { * @param length the maximum number of bytes read * @return the actual number of bytes read, -1 is * returned when the end of the stream is reached. - * @exception IOException If an I/O error has occurred. + * @throws IOException If an I/O error has occurred. */ public int read(byte b[], int off, int length) throws IOException { return read(b, off, length, impl.getTimeout()); @@ -206,7 +206,7 @@ class SocketInputStream extends FileInputStream { * Skips n bytes of input. * @param numbytes the number of bytes to skip * @return the actual number of bytes skipped. - * @exception IOException If an I/O error has occurred. + * @throws IOException If an I/O error has occurred. */ public long skip(long numbytes) throws IOException { if (numbytes <= 0) { |
