From: David ‘Bombe’ Roden Date: Thu, 7 Apr 2011 19:38:56 +0000 (+0200) Subject: Copy all values in the copy constructor. X-Git-Tag: 0.6.1^2~15 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=3acdf9644688e6a3aa0288c64167ef1f82a51cdf;p=Sone.git Copy all values in the copy constructor. --- diff --git a/src/main/java/net/pterodactylus/sone/notify/ListNotification.java b/src/main/java/net/pterodactylus/sone/notify/ListNotification.java index 0383648..c66d376 100644 --- a/src/main/java/net/pterodactylus/sone/notify/ListNotification.java +++ b/src/main/java/net/pterodactylus/sone/notify/ListNotification.java @@ -81,7 +81,7 @@ public class ListNotification extends TemplateNotification { * The list notification to copy */ public ListNotification(ListNotification 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);