Replace the synchronized class "Vector" by an unsynchronized one such as "ArrayList" or "LinkedList".
package com.microsoft.sqlserver.jdbc;
-import java.util.Vector;
+import java.util.ArrayList;
/**
* Represents a single encrypted value for a CEK. It contains the encrypted CEK,the store type, name,the key path and encryption algorithm.
@@ -45,19 +45,19 @@ class EncryptionKeyInfo {
/**
* Represents a unique CEK as an entry in the CekTable. A unique (plaintext is unique) CEK can have multiple encrypted CEKs when using multiple CMKs.
- * These encrypted CEKs are represented by a member vector.
+ * These encrypted CEKs are represented by a member ArrayList.
*/
class CekTableEntry {
static final private java.util.logging.Logger aeLogger = java.util.logging.Logger.getLogger("com.microsoft.sqlserver.jdbc.AE");
- Vector<EncryptionKeyInfo> columnEncryptionKeyValues;
+ ArrayList<EncryptionKeyInfo> columnEncryptionKeyValues;
int ordinal;
int databaseId;
int cekId;
int cekVersion;
byte[] cekMdVersion;
- Vector<EncryptionKeyInfo> getColumnEncryptionKeyValues() {
+ ArrayList<EncryptionKeyInfo> getColumnEncryptionKeyValues() {
return columnEncryptionKeyValues;
}
@@ -87,7 +87,7 @@ class CekTableEntry {
cekId = 0;
cekVersion = 0;
cekMdVersion = null;
- columnEncryptionKeyValues = new Vector<EncryptionKeyInfo>();
+ columnEncryptionKeyValues = new ArrayList<EncryptionKeyInfo>();
}
int getSize() {
