You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by on...@apache.org on 2015/12/04 12:59:27 UTC
svn commit: r1717940 -
/poi/trunk/src/java/org/apache/poi/ss/usermodel/ExcelStyleDateFormatter.java
Author: onealj
Date: Fri Dec 4 11:59:26 2015
New Revision: 1717940
URL: http://svn.apache.org/viewvc?rev=1717940&view=rev
Log:
add hashCode for corresponding equals function
Modified:
poi/trunk/src/java/org/apache/poi/ss/usermodel/ExcelStyleDateFormatter.java
Modified: poi/trunk/src/java/org/apache/poi/ss/usermodel/ExcelStyleDateFormatter.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/ss/usermodel/ExcelStyleDateFormatter.java?rev=1717940&r1=1717939&r2=1717940&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/ss/usermodel/ExcelStyleDateFormatter.java (original)
+++ poi/trunk/src/java/org/apache/poi/ss/usermodel/ExcelStyleDateFormatter.java Fri Dec 4 11:59:26 2015
@@ -189,4 +189,9 @@ public class ExcelStyleDateFormatter ext
ExcelStyleDateFormatter other = (ExcelStyleDateFormatter) o;
return dateToBeFormatted == other.dateToBeFormatted;
}
+
+ @Override
+ public int hashCode() {
+ return new Double(dateToBeFormatted).hashCode();
+ }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org