From: David ‘Bombe’ Roden Date: Wed, 5 Sep 2012 10:28:03 +0000 (+0200) Subject: Differentiate between different job types in hashCode(). X-Git-Tag: 0.8.3^2~54^2~3 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=5d6b7c31dd7037bfbe5ef11431e765006623e909;p=Sone.git Differentiate between different job types in hashCode(). --- diff --git a/src/main/java/net/pterodactylus/sone/core/TrustUpdater.java b/src/main/java/net/pterodactylus/sone/core/TrustUpdater.java index 4bbe299..3f347d5 100644 --- a/src/main/java/net/pterodactylus/sone/core/TrustUpdater.java +++ b/src/main/java/net/pterodactylus/sone/core/TrustUpdater.java @@ -215,7 +215,7 @@ public class TrustUpdater extends AbstractService { */ @Override public int hashCode() { - return ((truster == null) ? 0 : truster.hashCode()) ^ ((trustee == null) ? 0 : trustee.hashCode()); + return getClass().hashCode() ^ ((truster == null) ? 0 : truster.hashCode()) ^ ((trustee == null) ? 0 : trustee.hashCode()); } /**