FindBugs warning: ExcelStyleDateFormatter doesn't override java.text.SimpleDAtaFormat.equals(Object)

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1717930 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2015-12-04 10:54:21 +00:00
parent 3b24eaacd3
commit 26abacebaf

View File

@ -179,4 +179,14 @@ public class ExcelStyleDateFormatter extends SimpleDateFormat {
return new StringBuffer(s);
}
@Override
public boolean equals(Object o) {
if (!(o instanceof ExcelStyleDateFormatter)) {
return false;
}
ExcelStyleDateFormatter other = (ExcelStyleDateFormatter) o;
return dateToBeFormatted == other.dateToBeFormatted;
}
}