提交 4398a60b 编写于 作者: K Kohsuke Kawaguchi

wrong method was implemented

上级 a821d859
......@@ -29,6 +29,7 @@ import hudson.model.Queue.Task;
import hudson.security.ACL;
import org.acegisecurity.Authentication;
import javax.annotation.Nonnull;
import java.util.Collection;
import java.util.Collections;
......@@ -62,9 +63,10 @@ public abstract class AbstractQueueTask implements Queue.Task {
/**
* This default implementation is the historical behaviour, but this is no longer desirable. Please override.
* See {@link Task#getIdentity()} for the contract.
* See {@link Task#getDefaultAuthentication()} for the contract.
*/
public Authentication getIdentity() {
@Nonnull
public Authentication getDefaultAuthentication() {
return ACL.SYSTEM;
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册