Differentiate between different job types in hashCode().
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 5 Sep 2012 10:28:03 +0000 (12:28 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 5 Sep 2012 10:28:03 +0000 (12:28 +0200)
src/main/java/net/pterodactylus/sone/core/TrustUpdater.java

index 4bbe299..3f347d5 100644 (file)
@@ -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());
                }
 
                /**