From 4aa6108c0d34fc19d89e71b8f892044ab9be8dca Mon Sep 17 00:00:00 2001 From: Javen O'Neal Date: Fri, 4 Dec 2015 11:59:26 +0000 Subject: [PATCH] add hashCode for corresponding equals function git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1717940 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/ss/usermodel/ExcelStyleDateFormatter.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/java/org/apache/poi/ss/usermodel/ExcelStyleDateFormatter.java b/src/java/org/apache/poi/ss/usermodel/ExcelStyleDateFormatter.java index 3e40fe5c7..5f37bce45 100644 --- a/src/java/org/apache/poi/ss/usermodel/ExcelStyleDateFormatter.java +++ b/src/java/org/apache/poi/ss/usermodel/ExcelStyleDateFormatter.java @@ -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(); + } }