提交 78c00318 编写于 作者: S Stephen Connolly

[JENKINS-36629] Use a name that does not assume on disk storage of run records

上级 b7c0d93d
......@@ -1159,7 +1159,7 @@ public abstract class Job<JobT extends Job<JobT, RunT>, RunT extends Run<JobT, R
if (runs instanceof RunMap) {
RunMap<RunT> runMap = (RunMap<RunT>) runs;
for (int index = i.getNumber(); index > u.getNumber() && totalCount < 5; index--) {
if (runMap.diskContains(index)) {
if (runMap.runExists(index)) {
totalCount++;
}
}
......
......@@ -293,14 +293,14 @@ public abstract class AbstractLazyLoadRunMap<R> extends AbstractMap<Integer,R> i
}
/**
* Checks if the disk index contains the specified build number.
* Checks if the the specified build exists.
*
* @param number the build number to probe.
* @return {@code true} if there is an on disk entry for the corresponding number, note that this does not mean that
* the corresponding build record will load.
* @since 2.14
* @return {@code true} if there is an run for the corresponding number, note that this does not mean that
* the corresponding record will load.
* @since FIXME
*/
public boolean diskContains(int number) {
public boolean runExists(int number) {
return numberOnDisk.contains(number);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册