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:
kohsuke committed 2008-08-06 21:25:20 +00:00
1 parent 2627da8966
commit f732e5baef
1 file changed
+1
+1
View File
@@ -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;
}