Skip to content

Commit e683268

Browse files
committed
Update old school @exception with new school @throws.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@1747114 13f79535-47bb-0310-9956-ffa450edef68
1 parent 81210eb commit e683268

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

src/main/java/org/apache/commons/io/output/DeferredFileOutputStream.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ private DeferredFileOutputStream(final int threshold, final File outputFile, fin
153153
*
154154
* @return The underlying output stream.
155155
*
156-
* @exception IOException if an error occurs.
156+
* @throws IOException if an error occurs.
157157
*/
158158
@Override
159159
protected OutputStream getStream() throws IOException
@@ -168,7 +168,7 @@ protected OutputStream getStream() throws IOException
168168
* much data is being written to keep in memory, so we elect to switch to
169169
* disk-based storage.
170170
*
171-
* @exception IOException if an error occurs.
171+
* @throws IOException if an error occurs.
172172
*/
173173
@Override
174174
protected void thresholdReached() throws IOException
@@ -245,7 +245,7 @@ public File getFile()
245245
/**
246246
* Closes underlying output stream, and mark this as closed
247247
*
248-
* @exception IOException if an error occurs.
248+
* @throws IOException if an error occurs.
249249
*/
250250
@Override
251251
public void close() throws IOException
@@ -260,7 +260,7 @@ public void close() throws IOException
260260
* after it has been closed.
261261
*
262262
* @param out output stream to write to.
263-
* @exception IOException if this stream is not yet closed or an error occurs.
263+
* @throws IOException if this stream is not yet closed or an error occurs.
264264
*/
265265
public void writeTo(final OutputStream out) throws IOException
266266
{

src/main/java/org/apache/commons/io/output/ThresholdingOutputStream.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public ThresholdingOutputStream(final int threshold)
8484
*
8585
* @param b The byte to be written.
8686
*
87-
* @exception IOException if an error occurs.
87+
* @throws IOException if an error occurs.
8888
*/
8989
@Override
9090
public void write(final int b) throws IOException
@@ -101,7 +101,7 @@ public void write(final int b) throws IOException
101101
*
102102
* @param b The array of bytes to be written.
103103
*
104-
* @exception IOException if an error occurs.
104+
* @throws IOException if an error occurs.
105105
*/
106106
@Override
107107
public void write(final byte b[]) throws IOException
@@ -120,7 +120,7 @@ public void write(final byte b[]) throws IOException
120120
* @param off The start offset in the byte array.
121121
* @param len The number of bytes to write.
122122
*
123-
* @exception IOException if an error occurs.
123+
* @throws IOException if an error occurs.
124124
*/
125125
@Override
126126
public void write(final byte b[], final int off, final int len) throws IOException
@@ -135,7 +135,7 @@ public void write(final byte b[], final int off, final int len) throws IOExcepti
135135
* Flushes this output stream and forces any buffered output bytes to be
136136
* written out.
137137
*
138-
* @exception IOException if an error occurs.
138+
* @throws IOException if an error occurs.
139139
*/
140140
@Override
141141
public void flush() throws IOException
@@ -148,7 +148,7 @@ public void flush() throws IOException
148148
* Closes this output stream and releases any system resources associated
149149
* with this stream.
150150
*
151-
* @exception IOException if an error occurs.
151+
* @throws IOException if an error occurs.
152152
*/
153153
@Override
154154
public void close() throws IOException
@@ -214,7 +214,7 @@ public boolean isThresholdExceeded()
214214
* @param count The number of bytes about to be written to the underlying
215215
* output stream.
216216
*
217-
* @exception IOException if an error occurs.
217+
* @throws IOException if an error occurs.
218218
*/
219219
protected void checkThreshold(final int count) throws IOException
220220
{
@@ -258,7 +258,7 @@ protected void setByteCount(final long count) {
258258
*
259259
* @return The underlying output stream.
260260
*
261-
* @exception IOException if an error occurs.
261+
* @throws IOException if an error occurs.
262262
*/
263263
protected abstract OutputStream getStream() throws IOException;
264264

@@ -268,7 +268,7 @@ protected void setByteCount(final long count) {
268268
* subclass should take whatever action necessary on this event. This may
269269
* include changing the underlying output stream.
270270
*
271-
* @exception IOException if an error occurs.
271+
* @throws IOException if an error occurs.
272272
*/
273273
protected abstract void thresholdReached() throws IOException;
274274
}

0 commit comments

Comments
 (0)