From: David ‘Bombe’ Roden Date: Thu, 14 Apr 2011 17:59:56 +0000 (+0200) Subject: Don’t call touch() when setting all elements at once. X-Git-Tag: 0.6.2^2~19^2~5 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=94dfa322a3cbaf070f6da450a382098c4d8421d7;p=Sone.git Don’t call touch() when setting all elements at once. --- diff --git a/src/main/java/net/pterodactylus/sone/notify/ListNotification.java b/src/main/java/net/pterodactylus/sone/notify/ListNotification.java index c66d376..3a79c93 100644 --- a/src/main/java/net/pterodactylus/sone/notify/ListNotification.java +++ b/src/main/java/net/pterodactylus/sone/notify/ListNotification.java @@ -101,7 +101,8 @@ public class ListNotification extends TemplateNotification { } /** - * Sets the elements to show in this notification. + * Sets the elements to show in this notification. This method will not call + * {@link #touch()}. * * @param elements * The elements to show @@ -109,7 +110,6 @@ public class ListNotification extends TemplateNotification { public void setElements(Collection elements) { this.elements.clear(); this.elements.addAll(elements); - touch(); } /**