Initialize hash code with the super class’ hash code.
[Sone.git] / 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();
                }