Initialize hash code with the super class’ hash code.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 24 Nov 2011 09:27:56 +0000 (10:27 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 24 Nov 2011 09:27:56 +0000 (10:27 +0100)
src/main/java/net/pterodactylus/sone/notify/ListNotification.java

index 7216c42..57cb7fe 100644 (file)
@@ -170,7 +170,7 @@ public class ListNotification<T> extends TemplateNotification {
         */
        @Override
        public int hashCode() {
-               int hashCode = key.hashCode();
+               int hashCode = super.hashCode();
                for (T element : elements) {
                        hashCode ^= element.hashCode();
                }