提交 b524ae9d 编写于 作者: J Jesse Glick

Undeprecating Job.getBuild, since this is the only way to look up a build by...

Undeprecating Job.getBuild, since this is the only way to look up a build by ID if you are unsure what kind of Job it is.
上级 f2a39b52
......@@ -678,11 +678,9 @@ public abstract class Job<JobT extends Job<JobT, RunT>, RunT extends Run<JobT, R
}
/**
* @deprecated since 2008-06-15.
* This is only used to support backward compatibility with old URLs.
* Looks up a build by its ID.
* @see LazyBuildMixIn#getBuild
*/
@Deprecated
public RunT getBuild(String id) {
for (RunT r : _getRuns().values()) {
if (r.getId().equals(id))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册