diff options
author | Arne H Juul <arnej@yahoo-inc.com> | 2017-04-20 14:58:00 +0200 |
---|---|---|
committer | Arne H Juul <arnej@yahoo-inc.com> | 2017-04-20 15:17:25 +0200 |
commit | 53e55b673eec21371b9ff6e5a8fe75d7f213efac (patch) | |
tree | 4c9296aebbd6e8ba3b57cfd62fc34f0d00957a1a /vdslib/src/test | |
parent | eeeb1461b9a2ed19bbc49741671fbd105fc504c2 (diff) |
implement hashCode to avoid warning
Diffstat (limited to 'vdslib/src/test')
-rw-r--r-- | vdslib/src/test/java/com/yahoo/vdslib/distribution/DistributionTestFactory.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vdslib/src/test/java/com/yahoo/vdslib/distribution/DistributionTestFactory.java b/vdslib/src/test/java/com/yahoo/vdslib/distribution/DistributionTestFactory.java index abd6ef70d35..c3a8647d95b 100644 --- a/vdslib/src/test/java/com/yahoo/vdslib/distribution/DistributionTestFactory.java +++ b/vdslib/src/test/java/com/yahoo/vdslib/distribution/DistributionTestFactory.java @@ -51,6 +51,10 @@ public class DistributionTestFactory extends CrossPlatformTestFactory { && failure.equals(t.failure)); } + public int hashCode() { + return bucket.hashCode() + nodes.hashCode() + disks.hashCode(); + } + public String toString() { StringBuilder sb = new StringBuilder().append(bucket.toString()); if (failure == Failure.NONE) { |