提交 b225178c 编写于 作者: K Kohsuke Kawaguchi

To make the previous change more effective, these synchronized keywords need to go as well.

This change is safe because (i) those actions are read-only and (ii) if they produce data that's bit old, that isn't really noticeable.
上级 2f287380
......@@ -1115,7 +1115,7 @@ public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends A
* @see TransientProjectActionFactory
*/
@Override
public synchronized List<Action> getActions() {
public List<Action> getActions() {
// add all the transient actions, too
List<Action> actions = new Vector<Action>(super.getActions());
actions.addAll(transientActions);
......
......@@ -94,7 +94,7 @@ public class LabelAtom extends Label implements Saveable {
* should do so by implementing {@link LabelAtomProperty#getActions(LabelAtom)}.
*/
@Override
public synchronized List<Action> getActions() {
public List<Action> getActions() {
// add all the transient actions, too
List<Action> actions = new Vector<Action>(super.getActions());
actions.addAll(transientActions);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册