Include checks for equals() made by the super class.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 24 Nov 2011 09:28:17 +0000 (10:28 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 24 Nov 2011 09:28:17 +0000 (10:28 +0100)
src/main/java/net/pterodactylus/sone/notify/ListNotification.java

index 57cb7fe..cf658bd 100644 (file)
@@ -186,6 +186,9 @@ public class ListNotification<T> extends TemplateNotification {
                        return false;
                }
                ListNotification<?> listNotification = (ListNotification<?>) object;
+               if (!super.equals(listNotification)) {
+                       return false;
+               }
                if (!key.equals(listNotification.key)) {
                        return false;
                }