From cef97b990ec196694435b5e3cfdfa3fc3efcf314 Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Sun, 7 Jan 2018 01:45:27 -0600 Subject: [PATCH] WgQuickBackend: Prefer ArrayList over LinkedList Signed-off-by: Samuel Holland --- .../java/com/wireguard/android/backend/WgQuickBackend.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/wireguard/android/backend/WgQuickBackend.java b/app/src/main/java/com/wireguard/android/backend/WgQuickBackend.java index 6703f735..93ddcc32 100644 --- a/app/src/main/java/com/wireguard/android/backend/WgQuickBackend.java +++ b/app/src/main/java/com/wireguard/android/backend/WgQuickBackend.java @@ -12,7 +12,7 @@ import com.wireguard.config.Config; import java.io.File; import java.io.IOException; import java.util.Collections; -import java.util.LinkedList; +import java.util.ArrayList; import java.util.List; import java.util.Set; @@ -51,7 +51,7 @@ public final class WgQuickBackend implements Backend { @Override public Set enumerate() { - final List output = new LinkedList<>(); + final List output = new ArrayList<>(); // Don't throw an exception here or nothing will show up in the UI. if (rootShell.run(output, "wg show interfaces") != 0 || output.isEmpty()) return Collections.emptySet();