提交 6c6d101e 编写于 作者: V Vojtech Juranek

If we re-create actions each time, we should recreate also the list. List has to be thread safe.

上级 c3a61c67
......@@ -88,6 +88,7 @@ import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.Vector;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;
......@@ -897,7 +898,7 @@ public abstract class AbstractBuild<P extends AbstractProject<P,R>,R extends Abs
@Override
public List<Action> getActions() {
List<Action> actions = super.getActions();
List<Action> actions = new CopyOnWriteArrayList<Action>(super.getActions());
actions.addAll(createTransientActions());
return actions;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册