提交 f83d4550 编写于 作者: K Kohsuke Kawaguchi

added more convenience method

上级 c462cb63
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
*/ */
package hudson.util; package hudson.util;
import com.infradna.tool.bridge_method_injector.WithBridgeMethods;
import hudson.Launcher; import hudson.Launcher;
import hudson.Util; import hudson.Util;
...@@ -367,8 +368,13 @@ public class ArgumentListBuilder implements Serializable, Cloneable { ...@@ -367,8 +368,13 @@ public class ArgumentListBuilder implements Serializable, Cloneable {
* Add a masked argument * Add a masked argument
* @param string the argument * @param string the argument
*/ */
public void addMasked(String string) { @WithBridgeMethods(void.class)
add(string, true); public ArgumentListBuilder addMasked(String string) {
return add(string, true);
}
public ArgumentListBuilder addMasked(Secret s) {
return add(Secret.toString(s),true);
} }
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册