diff options
author | Samuel Holland <samuel@sholland.org> | 2018-01-07 01:45:27 -0600 |
---|---|---|
committer | Samuel Holland <samuel@sholland.org> | 2018-01-07 01:45:27 -0600 |
commit | cef97b990ec196694435b5e3cfdfa3fc3efcf314 (patch) | |
tree | 5895eae631ebddbb63739a1f0b20d157fa26bbf4 | |
parent | e01813487fd770f636c7f8e1a4327873611abb9a (diff) |
WgQuickBackend: Prefer ArrayList over LinkedList
Signed-off-by: Samuel Holland <samuel@sholland.org>
-rw-r--r-- | app/src/main/java/com/wireguard/android/backend/WgQuickBackend.java | 4 |
1 files 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<String> enumerate() { - final List<String> output = new LinkedList<>(); + final List<String> 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(); |