提交 b90d2e66 编写于 作者: K kohsuke

bug fix.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2017 71c3de6d-444a-0410-be80-ed276b4c234a
上级 26574c6d
...@@ -60,8 +60,8 @@ public class Fingerprint implements ModelObject { ...@@ -60,8 +60,8 @@ public class Fingerprint implements ModelObject {
* Gets the {@link Job} that this pointer points to, * Gets the {@link Job} that this pointer points to,
* or null if such a job no longer exists. * or null if such a job no longer exists.
*/ */
public Job getJob() { public AbstractProject getJob() {
return Hudson.getInstance().getItemByFullName(name,Job.class); return Hudson.getInstance().getItemByFullName(name,AbstractProject.class);
} }
/** /**
......
...@@ -258,7 +258,7 @@ public class Fingerprinter extends Publisher implements Serializable { ...@@ -258,7 +258,7 @@ public class Fingerprinter extends Publisher implements Serializable {
Integer existing = r.get(bp.getJob()); Integer existing = r.get(bp.getJob());
if(existing!=null && existing>bp.getNumber()) if(existing!=null && existing>bp.getNumber())
continue; // the record in the map is already up to date continue; // the record in the map is already up to date
r.put((Project)bp.getJob(),bp.getNumber()); r.put(bp.getJob(),bp.getNumber());
} }
return r; return r;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册