Skip to content

Commit 239bc34

Browse files
author
Anirav Kareddy
committed
changed static constant INSTRUCTION_FILE_SUFFIX to DEFAULT_INSTRUCTION_FILE_SUFFIX
1 parent ee4f448 commit 239bc34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/software/amazon/encryption/s3/S3EncryptionClientUtilities.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616
public class S3EncryptionClientUtilities {
1717

18-
public static final String INSTRUCTION_FILE_SUFFIX = ".instruction";
18+
public static final String DEFAULT_INSTRUCTION_FILE_SUFFIX = ".instruction";
1919
public static final long MIN_ALLOWED_BUFFER_SIZE_BYTES = AlgorithmSuite.ALG_AES_256_GCM_IV12_TAG16_NO_KDF.cipherBlockSizeBytes();
2020
public static final long MAX_ALLOWED_BUFFER_SIZE_BYTES = AlgorithmSuite.ALG_AES_256_GCM_IV12_TAG16_NO_KDF.cipherMaxContentLengthBytes();
2121

@@ -32,7 +32,7 @@ public class S3EncryptionClientUtilities {
3232
*/
3333
static List<ObjectIdentifier> instructionFileKeysToDelete(final DeleteObjectsRequest request) {
3434
return request.delete().objects().stream()
35-
.map(o -> o.toBuilder().key(o.key() + INSTRUCTION_FILE_SUFFIX).build())
35+
.map(o -> o.toBuilder().key(o.key() + DEFAULT_INSTRUCTION_FILE_SUFFIX).build())
3636
.collect(Collectors.toList());
3737
}
3838
}

0 commit comments

Comments
 (0)