From: David ‘Bombe’ Roden Date: Thu, 24 Nov 2011 09:27:56 +0000 (+0100) Subject: Initialize hash code with the super class’ hash code. X-Git-Tag: 0.7.5^2~4^2~14 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=c55737094ab4551ae6d9805e4397b25322c87c78 Initialize hash code with the super class’ hash code. --- diff --git a/src/main/java/net/pterodactylus/sone/notify/ListNotification.java b/src/main/java/net/pterodactylus/sone/notify/ListNotification.java index 7216c42..57cb7fe 100644 --- a/src/main/java/net/pterodactylus/sone/notify/ListNotification.java +++ b/src/main/java/net/pterodactylus/sone/notify/ListNotification.java @@ -170,7 +170,7 @@ public class ListNotification extends TemplateNotification { */ @Override public int hashCode() { - int hashCode = key.hashCode(); + int hashCode = super.hashCode(); for (T element : elements) { hashCode ^= element.hashCode(); }