these individual add/remove methods bloat the code. Use DescriptorList

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@16045 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2009-03-06 02:15:32 +00:00
1 parent ddf321c133
commit ade0ace7d0
1 file changed
+6
@@ -130,6 +130,9 @@ public abstract class Project<P extends Project<P,B>,B extends Build<P,B>>
/**
* Adds a new {@link BuildStep} to this {@link Project} and saves the configuration.
*
* @deprecated as of 1.290
* Use {@code getPublishersList().add(x)}
*/
public void addPublisher(Publisher buildStep) throws IOException {
publishers.add(buildStep);
@@ -137,6 +140,9 @@ public abstract class Project<P extends Project<P,B>,B extends Build<P,B>>
/**
* Removes a publisher from this project, if it's active.
*
* @deprecated as of 1.290
* Use {@code getPublishersList().remove(x)}
*/
public void removePublisher(Descriptor<Publisher> descriptor) throws IOException {
publishers.remove(descriptor);