mirror of https://github.com/apache/poi.git
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:
parent
3309d1f820
commit
83398660de
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue