diff -r 33de7752835c -r 94bb65cb37d3 src/java.base/share/classes/java/net/SocketOutputStream.java --- a/src/java.base/share/classes/java/net/SocketOutputStream.java Fri Sep 20 11:33:30 2019 +0800 +++ b/src/java.base/share/classes/java/net/SocketOutputStream.java Fri Sep 20 11:07:52 2019 +0100 @@ -79,7 +79,7 @@ * @param b the data to be written * @param off the start offset in the data * @param len the number of bytes that are written - * @exception IOException If an I/O error has occurred. + * @throws IOException If an I/O error has occurred. */ private native void socketWrite0(FileDescriptor fd, byte[] b, int off, int len) throws IOException; @@ -90,7 +90,7 @@ * @param b the data to be written * @param off the start offset in the data * @param len the number of bytes that are written - * @exception IOException If an I/O error has occurred. + * @throws IOException If an I/O error has occurred. */ private void socketWrite(byte b[], int off, int len) throws IOException { @@ -120,7 +120,7 @@ /** * Writes a byte to the socket. * @param b the data to be written - * @exception IOException If an I/O error has occurred. + * @throws IOException If an I/O error has occurred. */ public void write(int b) throws IOException { temp[0] = (byte)b; @@ -130,7 +130,7 @@ /** * Writes the contents of the buffer b to the socket. * @param b the data to be written - * @exception SocketException If an I/O error has occurred. + * @throws SocketException If an I/O error has occurred. */ public void write(byte b[]) throws IOException { socketWrite(b, 0, b.length); @@ -142,7 +142,7 @@ * @param b the data to be written * @param off the start offset in the data * @param len the number of bytes that are written - * @exception SocketException If an I/O error has occurred. + * @throws SocketException If an I/O error has occurred. */ public void write(byte b[], int off, int len) throws IOException { socketWrite(b, off, len);