We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abaae75 commit 53d22fdCopy full SHA for 53d22fd
1 file changed
src/test/java/org/apache/commons/io/test/ThrowOnCloseInputStream.java
@@ -28,20 +28,26 @@
28
public class ThrowOnCloseInputStream extends ProxyInputStream {
29
30
/**
31
- * Default constructor.
+ * Constructs a new instance.
32
*/
33
public ThrowOnCloseInputStream() {
34
super(NullInputStream.INSTANCE);
35
}
36
37
38
39
+ *
40
* @param proxy InputStream to delegate to.
41
42
public ThrowOnCloseInputStream(final InputStream proxy) {
43
super(proxy);
44
45
- /** @see java.io.InputStream#close() */
46
+ /**
47
+ * Always throws IOException.
48
49
+ * @see java.io.InputStream#close()
50
+ */
51
@Override
52
public void close() throws IOException {
53
throw new IOException(getClass().getSimpleName() + ".close() called.");
0 commit comments