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
1 changed files with 10 additions and 0 deletions

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;
}
}