HUDSON-2682 workaround for Eclipse compilation bug

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13893 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
huybrechts committed 2008-12-26 21:40:21 +00:00
1 parent 3cef8497b7
commit 9407832bc8
1 file changed
+5 -1
+5 -1
View File
@@ -999,7 +999,11 @@ 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;
// HUDSON-2682 workaround for Eclipse compilation bug
// on (c instanceof ChartLabel)
if (o == null || !ChartLabel.class.isAssignableFrom( o.getClass() )) {
return false;
}
ChartLabel that = (ChartLabel) o;
return run == that.run;
}