doc update

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@10854 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2008-07-16 19:10:55 +00:00
1 parent 7b3de6aa70
commit c45633cd2a
1 file changed
+11 -1
@@ -19,6 +19,7 @@ import hudson.security.ACL;
import hudson.security.Permission;
import hudson.tasks.BuildTrigger;
import hudson.tasks.Publisher;
import hudson.tasks.BuildStep;
import hudson.triggers.SCMTrigger;
import hudson.triggers.Trigger;
import hudson.triggers.TriggerDescriptor;
@@ -477,11 +478,20 @@ public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends A
}
}
/**
* {@inheritDoc}
*
* <p>
* Note that this method returns a read-only view of {@link Action}s.
* {@link BuildStep}s and others who want to add a project action
* should do so by implementing {@link BuildStep#getProjectAction(AbstractProject)}.
*/
public synchronized List<Action> getActions() {
// add all the transient actions, too
List<Action> actions = new Vector<Action>(super.getActions());
actions.addAll(transientActions);
return actions;
// return the read only list to cause a failure on plugins who try to add an action here
return Collections.unmodifiableList(actions);
}
/**