X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fnotify%2FListNotification.java;h=d99424c0cdeb4b174128ec9562ad370067572c91;hp=7216c42fd84c24593e853f18643f346a5a163e18;hb=9e8b1de83b5791778788406edbba9ed6d256a63f;hpb=e53822bee94492512b6ff19600d300887a02bff3 diff --git a/src/main/java/net/pterodactylus/sone/notify/ListNotification.java b/src/main/java/net/pterodactylus/sone/notify/ListNotification.java index 7216c42..d99424c 100644 --- a/src/main/java/net/pterodactylus/sone/notify/ListNotification.java +++ b/src/main/java/net/pterodactylus/sone/notify/ListNotification.java @@ -1,5 +1,5 @@ /* - * Sone - ListNotification.java - Copyright © 2010 David Roden + * Sone - ListNotification.java - Copyright © 2010–2013 David Roden * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -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; }