]> source.dussan.org Git - poi.git/commitdiff
FindBug warning: EQ_SELF_USE_OBJECT: class defines equals(Region) and uses Object...
authorJaven O'Neal <onealj@apache.org>
Tue, 24 Nov 2015 01:10:47 +0000 (01:10 +0000)
committerJaven O'Neal <onealj@apache.org>
Tue, 24 Nov 2015 01:10:47 +0000 (01:10 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1716004 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/ss/util/Region.java

index b39681917ab5871c211e0a89bd368d3b9268c3fc..a94e6f5505d992abc1ed6749add803bf5d66a18e 100644 (file)
@@ -159,12 +159,19 @@ public class Region implements Comparable<Region> {
                return false;
        }
 
+       @Override
+       public boolean equals(Object o) {
+               if (this instanceof Region)
+                       return equals((Region) o);
+               else
+                       return false;
+       }
+
        public boolean equals(Region r)
        {
                return (compareTo(r) == 0);
        }
 
-
        @Override
        public int hashCode() {
            assert false : "hashCode not designed";