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 11:54:22 UTC
svn commit: r1717930 -
/poi/trunk/src/java/org/apache/poi/ss/usermodel/ExcelStyleDateFormatter.java
Author: onealj
Date: Fri Dec 4 10:54:21 2015
New Revision: 1717930
URL: http://svn.apache.org/viewvc?rev=1717930&view=rev
Log:
FindBugs warning: ExcelStyleDateFormatter doesn't override java.text.SimpleDAtaFormat.equals(Object)
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=1717930&r1=1717929&r2=1717930&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 10:54:21 2015
@@ -179,4 +179,14 @@ public class ExcelStyleDateFormatter ext
return new StringBuffer(s);
}
+
+ @Override
+ public boolean equals(Object o) {
+ if (!(o instanceof ExcelStyleDateFormatter)) {
+ return false;
+ }
+
+ ExcelStyleDateFormatter other = (ExcelStyleDateFormatter) o;
+ return dateToBeFormatted == other.dateToBeFormatted;
+ }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org