We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca42177 commit 55c2f3cCopy full SHA for 55c2f3c
src/main/java/com/amazonaws/encryptionsdk/keyrings/KmsKeyring.java
@@ -48,7 +48,7 @@ class KmsKeyring implements Keyring {
48
KmsKeyring(DataKeyEncryptionDao dataKeyEncryptionDao, List<String> keyIds, String generatorKeyId) {
49
requireNonNull(dataKeyEncryptionDao, "dataKeyEncryptionDao is required");
50
this.dataKeyEncryptionDao = dataKeyEncryptionDao;
51
- this.keyIds = keyIds == null ? emptyList() : unmodifiableList(keyIds);
+ this.keyIds = keyIds == null ? emptyList() : unmodifiableList(new ArrayList<>(keyIds));
52
this.generatorKeyId = generatorKeyId;
53
this.isDiscovery = this.generatorKeyId == null && this.keyIds.isEmpty();
54
0 commit comments