提交 ae3df3c4 编写于 作者: K kohsuke

adding one more constructor.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@7622 71c3de6d-444a-0410-be80-ed276b4c234a
上级 8c120736
......@@ -47,6 +47,13 @@ public final class StreamTaskListener implements TaskListener, Serializable {
this(new WriterOutputStream(w));
}
/**
* Creates {@link StreamTaskListener} that swallows the result.
*/
public StreamTaskListener() {
this(new NullStream());
}
public PrintStream getLogger() {
return out;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册