mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 22:12:25 +00:00
moved the common logic up to AbstractProject.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3515 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
d306b01020
commit
a8b7f83261
3 files changed
+3
-5
No files matched your search
@@ -8,7 +8,6 @@ import hudson.triggers.Trigger;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
import java.util.Vector;
|
||||
|
||||
/**
|
||||
* Common part between {@link MavenModule} and {@link MavenModuleSet}.
|
||||
@@ -21,8 +20,6 @@ public abstract class AbstractMavenProject<P extends AbstractMavenProject<P,R>,R
|
||||
}
|
||||
|
||||
/*package*/ void updateTransientActions() {
|
||||
if(transientActions==null)
|
||||
transientActions = new Vector<Action>(); // happens when loaded from disk
|
||||
synchronized(transientActions) {
|
||||
transientActions.clear();
|
||||
|
||||
|
||||
@@ -140,6 +140,9 @@ public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends A
|
||||
triggers = new Vector<Trigger<?>>();
|
||||
for (Trigger t : triggers)
|
||||
t.start(this,false);
|
||||
|
||||
if(transientActions==null)
|
||||
transientActions = new Vector<Action>(); // happens when loaded from disk
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -203,8 +203,6 @@ public class Project extends AbstractProject<Project,Build> implements TopLevelI
|
||||
}
|
||||
|
||||
private void updateTransientActions() {
|
||||
if(transientActions==null)
|
||||
transientActions = new Vector<Action>(); // happens when loaded from disk
|
||||
synchronized(transientActions) {
|
||||
transientActions.clear();
|
||||
for (JobProperty<? super Project> p : properties) {
|
||||
|
||||
Reference in new issue
Block a user