From 38b65e7fcb38e4208e312b78b3d2a573cc70f7cc 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 3e40fe5c7d..5f37bce456 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(); + } } -- 2.39.5