aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJaven O'Neal <onealj@apache.org>2015-12-04 10:54:21 +0000
committerJaven O'Neal <onealj@apache.org>2015-12-04 10:54:21 +0000
commit83398660de4521428a693aacbfe66c89547ed2e4 (patch)
tree36060c4f020468b69933f319dcaf44a3efff4414 /src
parent3309d1f82027768a442a54c2f1442e8a678fd5bc (diff)
downloadpoi-83398660de4521428a693aacbfe66c89547ed2e4.tar.gz
poi-83398660de4521428a693aacbfe66c89547ed2e4.zip
FindBugs warning: ExcelStyleDateFormatter doesn't override java.text.SimpleDAtaFormat.equals(Object)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1717930 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/java/org/apache/poi/ss/usermodel/ExcelStyleDateFormatter.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/java/org/apache/poi/ss/usermodel/ExcelStyleDateFormatter.java b/src/java/org/apache/poi/ss/usermodel/ExcelStyleDateFormatter.java
index 2ea273f951..3e40fe5c7d 100644
--- a/src/java/org/apache/poi/ss/usermodel/ExcelStyleDateFormatter.java
+++ b/src/java/org/apache/poi/ss/usermodel/ExcelStyleDateFormatter.java
@@ -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;
+ }
}