From ade0ace7d0304d44c8f156d5bf583afc6d3f76ce Mon Sep 17 00:00:00 2001 From: kohsuke Date: Fri, 6 Mar 2009 02:15:32 +0000 Subject: [PATCH] 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 --- core/src/main/java/hudson/model/Project.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/src/main/java/hudson/model/Project.java b/core/src/main/java/hudson/model/Project.java index bd5429a469..48189b9c1b 100644 --- a/core/src/main/java/hudson/model/Project.java +++ b/core/src/main/java/hudson/model/Project.java @@ -130,6 +130,9 @@ public abstract class Project

,B extends Build> /** * 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

,B extends Build> /** * Removes a publisher from this project, if it's active. + * + * @deprecated as of 1.290 + * Use {@code getPublishersList().remove(x)} */ public void removePublisher(Descriptor descriptor) throws IOException { publishers.remove(descriptor);