From b15b322cf396287b5ae7b8e2a19205791d902fad Mon Sep 17 00:00:00 2001 From: Julia Boes Date: Fri, 20 Sep 2019 11:07:52 +0100 Subject: 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 --- src/java.base/share/classes/java/net/SocketInputStream.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/java.base/share/classes/java/net/SocketInputStream.java') 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) { -- cgit v1.3.1