X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fnotify%2FListNotification.java;h=cf658bd268df005caa395029642a0f3608d4ec51;hb=e69ff87d43e5360b30c18aedd5fd3e2cd15d849e;hp=7216c42fd84c24593e853f18643f346a5a163e18;hpb=e53822bee94492512b6ff19600d300887a02bff3;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/notify/ListNotification.java b/src/main/java/net/pterodactylus/sone/notify/ListNotification.java index 7216c42..cf658bd 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(); } @@ -186,6 +186,9 @@ public class ListNotification extends TemplateNotification { return false; } ListNotification listNotification = (ListNotification) object; + if (!super.equals(listNotification)) { + return false; + } if (!key.equals(listNotification.key)) { return false; }