提交 0508d65e 编写于 作者: K kohsuke

hack to avoid double-registration.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@14616 71c3de6d-444a-0410-be80-ed276b4c234a
上级 d21f4534
......@@ -158,5 +158,15 @@ public interface BuildStep {
int idx = super.indexOf(Mailer.DESCRIPTOR);
add(idx,d);
}
@Override
public boolean add(Descriptor<Publisher> d) {
return !contains(d) && super.add(d);
}
@Override
public void add(int index, Descriptor<Publisher> d) {
if(!contains(d)) super.add(index, d);
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册