8286783: Expand use of @inheritDoc in InputStream and OutputStream subclasses

Reviewed-by: alanb
This commit is contained in:
Joe Darcy 2022-05-17 16:14:28 +00:00
parent ea713c37fb
commit 8e602b862d
13 changed files with 156 additions and 141 deletions

View file

@ -314,6 +314,7 @@ public class FileOutputStream extends OutputStream
* @param b the byte to be written.
* @throws IOException if an I/O error occurs.
*/
@Override
public void write(int b) throws IOException {
boolean append = fdAccess.getAppend(fd);
long comp = Blocker.begin();
@ -340,9 +341,10 @@ public class FileOutputStream extends OutputStream
* Writes {@code b.length} bytes from the specified byte array
* to this file output stream.
*
* @param b the data.
* @throws IOException if an I/O error occurs.
* @param b {@inheritDoc}
* @throws IOException {@inheritDoc}
*/
@Override
public void write(byte[] b) throws IOException {
boolean append = fdAccess.getAppend(fd);
long comp = Blocker.begin();
@ -357,11 +359,12 @@ public class FileOutputStream extends OutputStream
* Writes {@code len} bytes from the specified byte array
* starting at offset {@code off} to this file output stream.
*
* @param b the data.
* @param off the start offset in the data.
* @param len the number of bytes to write.
* @param b {@inheritDoc}
* @param off {@inheritDoc}
* @param len {@inheritDoc}
* @throws IOException if an I/O error occurs.
*/
@Override
public void write(byte[] b, int off, int len) throws IOException {
boolean append = fdAccess.getAppend(fd);
long comp = Blocker.begin();
@ -392,6 +395,7 @@ public class FileOutputStream extends OutputStream
*
* @revised 1.4
*/
@Override
public void close() throws IOException {
if (closed) {
return;