aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpConstants.java
diff options
context:
space:
mode:
authorDominik Schürmann <dominik@dominikschuermann.de>2015-03-05 17:59:53 +0100
committerDominik Schürmann <dominik@dominikschuermann.de>2015-03-05 17:59:53 +0100
commite50eda4e29e4618e29756f19ec67b1d5ac0e9733 (patch)
treed8c55dc716823e473430d991c9c4cfc272da7119 /OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpConstants.java
parent02084ba14a5d1055dbb99d9f068b993310e0b517 (diff)
downloadopen-keychain-e50eda4e29e4618e29756f19ec67b1d5ac0e9733.tar.gz
open-keychain-e50eda4e29e4618e29756f19ec67b1d5ac0e9733.tar.bz2
open-keychain-e50eda4e29e4618e29756f19ec67b1d5ac0e9733.zip
Use ArrayList instead of LinkedList
Diffstat (limited to 'OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpConstants.java')
-rw-r--r--OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpConstants.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpConstants.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpConstants.java
index c0e254574..ba2a54b1a 100644
--- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpConstants.java
+++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpConstants.java
@@ -21,13 +21,13 @@ import org.spongycastle.bcpg.CompressionAlgorithmTags;
import org.spongycastle.bcpg.HashAlgorithmTags;
import org.spongycastle.bcpg.SymmetricKeyAlgorithmTags;
-import java.util.LinkedList;
+import java.util.ArrayList;
public class PgpConstants {
- public static LinkedList<Integer> sPreferredSymmetricAlgorithms = new LinkedList<>();
- public static LinkedList<Integer> sPreferredHashAlgorithms = new LinkedList<>();
- public static LinkedList<Integer> sPreferredCompressionAlgorithms = new LinkedList<>();
+ public static ArrayList<Integer> sPreferredSymmetricAlgorithms = new ArrayList<>();
+ public static ArrayList<Integer> sPreferredHashAlgorithms = new ArrayList<>();
+ public static ArrayList<Integer> sPreferredCompressionAlgorithms = new ArrayList<>();
/*
* Most preferred is first
@@ -94,7 +94,7 @@ public class PgpConstants {
public static final int USE_PREFERRED = -1;
}
- public static int[] getAsArray(LinkedList<Integer> list) {
+ public static int[] getAsArray(ArrayList<Integer> list) {
int[] array = new int[list.size()];
for (int i = 0; i < list.size(); i++) {
array[i] = list.get(i);