|
@@ -27,6 +27,8 @@ import java.io.IOException;
|
27
|
27
|
import java.io.InputStream;
|
28
|
28
|
import java.io.InputStreamReader;
|
29
|
29
|
|
|
30
|
+import javax.annotation.WillClose;
|
|
31
|
+
|
30
|
32
|
/**
|
31
|
33
|
* Stream reader to read, but ignore a stream.
|
32
|
34
|
*/
|
|
@@ -38,9 +40,9 @@ class StreamIgnorer extends Thread {
|
38
|
40
|
/**
|
39
|
41
|
* Create a new Stream Ignorer that discards output.
|
40
|
42
|
*
|
41
|
|
- * @param stream The stream to ignore
|
|
43
|
+ * @param stream The stream to ignore, closed once {@link #run} is called.
|
42
|
44
|
*/
|
43
|
|
- StreamIgnorer(final InputStream stream) {
|
|
45
|
+ StreamIgnorer(@WillClose final InputStream stream) {
|
44
|
46
|
super("StreamIgnorer");
|
45
|
47
|
|
46
|
48
|
this.stream = stream;
|