From: David ‘Bombe’ Roden Date: Tue, 24 May 2011 03:50:57 +0000 (+0200) Subject: Don’t wrap notifications into an ArrayList. X-Git-Tag: 0.6.5^2~31 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=7a24783f89a56c8570b3efc010561e02430c097f;p=Sone.git Don’t wrap notifications into an ArrayList. --- diff --git a/src/main/java/net/pterodactylus/sone/web/ajax/GetStatusAjaxPage.java b/src/main/java/net/pterodactylus/sone/web/ajax/GetStatusAjaxPage.java index 4e2049e..09b6f40 100644 --- a/src/main/java/net/pterodactylus/sone/web/ajax/GetStatusAjaxPage.java +++ b/src/main/java/net/pterodactylus/sone/web/ajax/GetStatusAjaxPage.java @@ -19,7 +19,6 @@ package net.pterodactylus.sone.web.ajax; import java.text.DateFormat; import java.text.SimpleDateFormat; -import java.util.ArrayList; import java.util.Collections; import java.util.Date; import java.util.HashSet; @@ -89,7 +88,7 @@ public class GetStatusAjaxPage extends JsonPage { jsonSones.add(jsonSone); } /* load notifications. */ - List notifications = ListNotificationFilters.filterNotifications(new ArrayList(webInterface.getNotifications().getNotifications()), currentSone); + List notifications = ListNotificationFilters.filterNotifications(webInterface.getNotifications().getNotifications(), currentSone); Collections.sort(notifications, Notification.LAST_UPDATED_TIME_SORTER); JsonArray jsonNotificationInformations = new JsonArray(); for (Notification notification : notifications) {