mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 05:52:26 +00:00
equals() not handling other types
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@11307 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
2627da8966
commit
f732e5baef
1 file changed
+1
@@ -974,6 +974,7 @@ public abstract class Job<JobT extends Job<JobT, RunT>, RunT extends Run<JobT, R
|
||||
}
|
||||
|
||||
public boolean equals(Object o) {
|
||||
if(!(o instanceof ChartLabel)) return false;
|
||||
ChartLabel that = (ChartLabel) o;
|
||||
return run == that.run;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user