aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/hssf/usermodel/HSSFClientAnchor.java
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2014-02-09 21:19:20 +0000
committerAndreas Beeker <kiwiwings@apache.org>2014-02-09 21:19:20 +0000
commit4b9d47af5a000ad70e8befdac6a27164f122e1b6 (patch)
tree30c3a90ba5d7bbf414d3cbc92f009c9fe09c2e2c /src/java/org/apache/poi/hssf/usermodel/HSSFClientAnchor.java
parent71d856448e1ccc41cf80a40d172d09b9ea502dae (diff)
downloadpoi-4b9d47af5a000ad70e8befdac6a27164f122e1b6.tar.gz
poi-4b9d47af5a000ad70e8befdac6a27164f122e1b6.zip
FindBugs fix
- fixed "Class defines equals() and uses Object.hashCode()" - see http://findbugs.sourceforge.net/bugDescriptions.html#HE_EQUALS_USE_HASHCODE - implemented UnicodeString.ExtRst.hashCode() + junit-test git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1566427 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi/hssf/usermodel/HSSFClientAnchor.java')
-rw-r--r--src/java/org/apache/poi/hssf/usermodel/HSSFClientAnchor.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFClientAnchor.java b/src/java/org/apache/poi/hssf/usermodel/HSSFClientAnchor.java
index b1df28f221..0a65bbd8ff 100644
--- a/src/java/org/apache/poi/hssf/usermodel/HSSFClientAnchor.java
+++ b/src/java/org/apache/poi/hssf/usermodel/HSSFClientAnchor.java
@@ -275,6 +275,12 @@ public final class HSSFClientAnchor extends HSSFAnchor implements ClientAnchor {
}
@Override
+ public int hashCode() {
+ assert false : "hashCode not designed";
+ return 42; // any arbitrary constant will do
+ }
+
+ @Override
public int getDx1() {
return _escherClientAnchor.getDx1();
}