< prev index next >
src/java.base/share/classes/java/util/zip/CheckedOutputStream.java
Print this page
rev 56290 : 8230648: Replace @exception tag with @throws in java.base
Summary: Minor coding style update of javadoc tag in any file in java.base
Reviewed-by: prappo, lancea
*** 1,7 ****
/*
! * Copyright (c) 1996, 1999, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 53,63 ****
}
/**
* Writes a byte. Will block until the byte is actually written.
* @param b the byte to be written
! * @exception IOException if an I/O error has occurred
*/
public void write(int b) throws IOException {
out.write(b);
cksum.update(b);
}
--- 53,63 ----
}
/**
* Writes a byte. Will block until the byte is actually written.
* @param b the byte to be written
! * @throws IOException if an I/O error has occurred
*/
public void write(int b) throws IOException {
out.write(b);
cksum.update(b);
}
*** 66,76 ****
* Writes an array of bytes. Will block until the bytes are
* actually written.
* @param b the data to be written
* @param off the start offset of the data
* @param len the number of bytes to be written
! * @exception IOException if an I/O error has occurred
*/
public void write(byte[] b, int off, int len) throws IOException {
out.write(b, off, len);
cksum.update(b, off, len);
}
--- 66,76 ----
* Writes an array of bytes. Will block until the bytes are
* actually written.
* @param b the data to be written
* @param off the start offset of the data
* @param len the number of bytes to be written
! * @throws IOException if an I/O error has occurred
*/
public void write(byte[] b, int off, int len) throws IOException {
out.write(b, off, len);
cksum.update(b, off, len);
}
< prev index next >