diff options
author | Arne H Juul <arnej@yahoo-inc.com> | 2017-04-20 15:15:27 +0200 |
---|---|---|
committer | Arne H Juul <arnej@yahoo-inc.com> | 2017-04-20 15:17:50 +0200 |
commit | ebeadaf366b7f2a0ed5937caf5ec59d8034b527b (patch) | |
tree | 12bbbc34ab6b1ea0da963c2018fce50b78c7233b /document | |
parent | ee878caec878d5af5838f4f2f0be1befb2759dd4 (diff) |
implement hashCode to fix warning
Diffstat (limited to 'document')
-rw-r--r-- | document/src/test/java/com/yahoo/document/BucketIdFactoryTestCase.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/document/src/test/java/com/yahoo/document/BucketIdFactoryTestCase.java b/document/src/test/java/com/yahoo/document/BucketIdFactoryTestCase.java index e511e4cf378..174c8842edc 100644 --- a/document/src/test/java/com/yahoo/document/BucketIdFactoryTestCase.java +++ b/document/src/test/java/com/yahoo/document/BucketIdFactoryTestCase.java @@ -34,6 +34,7 @@ public class BucketIdFactoryTestCase extends junit.framework.TestCase { public boolean equals(Object o) { return (o instanceof Hex && value == ((Hex) o).value); } + public int hashCode() { return (int)value; } public String toString() { return Long.toHexString(value); |