add hashCode for corresponding equals function

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1717940 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2015-12-04 11:59:26 +00:00
parent abced24fe4
commit 4aa6108c0d

View File

@ -189,4 +189,9 @@ public class ExcelStyleDateFormatter extends SimpleDateFormat {
ExcelStyleDateFormatter other = (ExcelStyleDateFormatter) o;
return dateToBeFormatted == other.dateToBeFormatted;
}
@Override
public int hashCode() {
return new Double(dateToBeFormatted).hashCode();
}
}