Copy all values in the copy constructor.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 7 Apr 2011 19:38:56 +0000 (21:38 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 7 Apr 2011 19:38:56 +0000 (21:38 +0200)
src/main/java/net/pterodactylus/sone/notify/ListNotification.java

index 0383648..c66d376 100644 (file)
@@ -81,7 +81,7 @@ public class ListNotification<T> extends TemplateNotification {
         *            The list notification to copy
         */
        public ListNotification(ListNotification<T> listNotification) {
-               super(listNotification.getId(), new Template());
+               super(listNotification.getId(), listNotification.getCreatedTime(), listNotification.getLastUpdatedTime(), listNotification.isDismissable(), new Template());
                this.key = listNotification.key;
                getTemplate().add(listNotification.getTemplate());
                getTemplate().getInitialContext().set(key, elements);