]> source.dussan.org Git - poi.git/commitdiff
FindBugs warning: ExcelStyleDateFormatter doesn't override java.text.SimpleDAtaFormat...
authorJaven O'Neal <onealj@apache.org>
Fri, 4 Dec 2015 10:54:21 +0000 (10:54 +0000)
committerJaven O'Neal <onealj@apache.org>
Fri, 4 Dec 2015 10:54:21 +0000 (10:54 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1717930 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/ss/usermodel/ExcelStyleDateFormatter.java

index 2ea273f9514153009951967ce06f28529fa5a3f0..3e40fe5c7d9143fa952ed424be30bf66422b3ca7 100644 (file)
@@ -179,4 +179,14 @@ public class ExcelStyleDateFormatter extends SimpleDateFormat {
 
         return new StringBuffer(s);
     }
+
+    @Override
+    public boolean equals(Object o) {
+        if (!(o instanceof ExcelStyleDateFormatter)) {
+            return false;
+        }
+        
+        ExcelStyleDateFormatter other = (ExcelStyleDateFormatter) o;
+        return dateToBeFormatted == other.dateToBeFormatted;
+    }
 }