From 470962c24008193a7d5cc03d982012e1b23f47e9 Mon Sep 17 00:00:00 2001 From: Ghost_chu Date: Tue, 26 Nov 2024 21:25:07 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E6=8D=A2=20LinkedList=20=E8=8A=82?= =?UTF-8?q?=E7=9C=81=20RAM"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 3f68e0f87673be9a57ffdeedc79ff470f84c69f9. --- .../ghostchu/peerbanhelper/downloaderplug/biglybt/Plugin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/ghostchu/peerbanhelper/downloaderplug/biglybt/Plugin.java b/src/main/java/com/ghostchu/peerbanhelper/downloaderplug/biglybt/Plugin.java index 0dffea6..0603b48 100644 --- a/src/main/java/com/ghostchu/peerbanhelper/downloaderplug/biglybt/Plugin.java +++ b/src/main/java/com/ghostchu/peerbanhelper/downloaderplug/biglybt/Plugin.java @@ -289,7 +289,7 @@ public ConnectorData getConnectorData() { } private void handleDownloads(Context ctx) { - List records = new LinkedList<>(); + List records = new ArrayList<>(); List filter = ctx.queryParams("filter").stream().map(Integer::parseInt).collect(Collectors.toList()); for (Download download : pluginInterface.getDownloadManager().getDownloads()) { boolean shouldAddToResultSet = filter.isEmpty() || filter.contains(download.getState()); @@ -303,7 +303,7 @@ private void handleDownloads(Context ctx) { public void handleBans(Context ctx) { boolean includeNonPBH = Boolean.parseBoolean(ctx.queryParam("includeNonPBH")); - List banned = new LinkedList<>(); + List banned = new ArrayList<>(); for (IPBanned bannedIP : pluginInterface.getIPFilter().getBannedIPs()) { if (!includeNonPBH) { if (!PBH_IDENTIFIER.equals(bannedIP.getBannedTorrentName())) {