poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From one...@apache.org
Subject svn commit: r1717930 - /poi/trunk/src/java/org/apache/poi/ss/usermodel/ExcelStyleDateFormatter.java
Date Fri, 04 Dec 2015 10:54:22 GMT
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


Mime
View raw message