Skip to content

Commit 831802d

Browse files
author
Lance Andersen
committed
8275163: Deflater::deflate methods omit javadoc for ReadOnlyBufferException
Reviewed-by: bpb, iris, naoto
1 parent ad9e234 commit 831802d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/java.base/share/classes/java/util/zip/Deflater.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,7 @@ public int deflate(byte[] output) {
495495
* @param output the buffer for the compressed data
496496
* @return the actual number of bytes of compressed data written to the
497497
* output buffer
498+
* @throws ReadOnlyBufferException if the given output buffer is read-only
498499
* @since 11
499500
*/
500501
public int deflate(ByteBuffer output) {
@@ -674,6 +675,7 @@ public int deflate(byte[] output, int off, int len, int flush) {
674675
* the output buffer
675676
*
676677
* @throws IllegalArgumentException if the flush mode is invalid
678+
* @throws ReadOnlyBufferException if the given output buffer is read-only
677679
* @since 11
678680
*/
679681
public int deflate(ByteBuffer output, int flush) {

0 commit comments

Comments
 (0)