Skip to content

Commit 53d22fd

Browse files
committed
Javadoc
1 parent abaae75 commit 53d22fd

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/test/java/org/apache/commons/io/test/ThrowOnCloseInputStream.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,26 @@
2828
public class ThrowOnCloseInputStream extends ProxyInputStream {
2929

3030
/**
31-
* Default constructor.
31+
* Constructs a new instance.
3232
*/
3333
public ThrowOnCloseInputStream() {
3434
super(NullInputStream.INSTANCE);
3535
}
3636

3737
/**
38+
* Constructs a new instance.
39+
*
3840
* @param proxy InputStream to delegate to.
3941
*/
4042
public ThrowOnCloseInputStream(final InputStream proxy) {
4143
super(proxy);
4244
}
4345

44-
/** @see java.io.InputStream#close() */
46+
/**
47+
* Always throws IOException.
48+
*
49+
* @see java.io.InputStream#close()
50+
*/
4551
@Override
4652
public void close() throws IOException {
4753
throw new IOException(getClass().getSimpleName() + ".close() called.");

0 commit comments

Comments
 (0)