mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
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
This commit is contained in:
parent
2fc6c6459d
commit
b15b322cf3
196 changed files with 1959 additions and 1962 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* 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
|
||||
|
@ -101,7 +101,7 @@ class DeflaterOutputStream extends FilterOutputStream {
|
|||
* @param out the output stream
|
||||
* @param def the compressor ("deflater")
|
||||
* @param size the output buffer size
|
||||
* @exception IllegalArgumentException if {@code size <= 0}
|
||||
* @throws IllegalArgumentException if {@code size <= 0}
|
||||
*/
|
||||
public DeflaterOutputStream(OutputStream out, Deflater def, int size) {
|
||||
this(out, def, size, false);
|
||||
|
@ -180,7 +180,7 @@ class DeflaterOutputStream extends FilterOutputStream {
|
|||
* Writes a byte to the compressed output stream. This method will
|
||||
* block until the byte can be written.
|
||||
* @param b the byte 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 {
|
||||
byte[] buf = new byte[1];
|
||||
|
@ -194,7 +194,7 @@ class DeflaterOutputStream extends FilterOutputStream {
|
|||
* @param b the data to be written
|
||||
* @param off the start offset of the data
|
||||
* @param len the length of the data
|
||||
* @exception IOException if an I/O error has occurred
|
||||
* @throws IOException if an I/O error has occurred
|
||||
*/
|
||||
public void write(byte[] b, int off, int len) throws IOException {
|
||||
if (def.finished()) {
|
||||
|
@ -217,7 +217,7 @@ class DeflaterOutputStream extends FilterOutputStream {
|
|||
* Finishes writing compressed data to the output stream without closing
|
||||
* the underlying stream. Use this method when applying multiple filters
|
||||
* in succession to the same output stream.
|
||||
* @exception IOException if an I/O error has occurred
|
||||
* @throws IOException if an I/O error has occurred
|
||||
*/
|
||||
public void finish() throws IOException {
|
||||
if (!def.finished()) {
|
||||
|
@ -231,7 +231,7 @@ class DeflaterOutputStream extends FilterOutputStream {
|
|||
/**
|
||||
* Writes remaining compressed data to the output stream and closes the
|
||||
* underlying stream.
|
||||
* @exception IOException if an I/O error has occurred
|
||||
* @throws IOException if an I/O error has occurred
|
||||
*/
|
||||
public void close() throws IOException {
|
||||
if (!closed) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue