提交 8170f7c4 编写于 作者: K kohsuke

more bug fix: name -> full name.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2014 71c3de6d-444a-0410-be80-ed276b4c234a
上级 24021a19
......@@ -335,7 +335,7 @@ public class Fingerprint implements ModelObject {
private final String fileName;
/**
* Range of builds that use this file keyed by a job name.
* Range of builds that use this file keyed by a job full name.
*/
private final Hashtable<String,RangeSet> usages = new Hashtable<String,RangeSet>();
......@@ -405,14 +405,14 @@ public class Fingerprint implements ModelObject {
* <p>
* These builds of this job has used this file.
*/
public RangeSet getRangeSet(String jobName) {
RangeSet r = usages.get(jobName);
public RangeSet getRangeSet(String jobFullName) {
RangeSet r = usages.get(jobFullName);
if(r==null) r = new RangeSet();
return r;
}
public RangeSet getRangeSet(Job job) {
return getRangeSet(job.getName());
return getRangeSet(job.getFullName());
}
/**
......@@ -429,19 +429,19 @@ public class Fingerprint implements ModelObject {
return usages;
}
public synchronized void add(Build b) throws IOException {
add(b.getParent().getName(),b.getNumber());
public synchronized void add(AbstractBuild b) throws IOException {
add(b.getParent().getFullName(),b.getNumber());
}
/**
* Records that a build of a job has used this file.
*/
public synchronized void add(String jobName, int n) throws IOException {
public synchronized void add(String jobFullName, int n) throws IOException {
synchronized(usages) {
RangeSet r = usages.get(jobName);
RangeSet r = usages.get(jobFullName);
if(r==null) {
r = new RangeSet();
usages.put(jobName,r);
usages.put(jobFullName,r);
}
r.add(n);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册