Skip to content

Commit 546e49b

Browse files
author
Anirav Kareddy
committed
replaced i with j
1 parent 0a9f0ec commit 546e49b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/test/java/software/amazon/encryption/s3/S3EncryptionClientStreamTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ public void customSetBufferSizeWithLargeObject() throws IOException {
335335

336336
byte[] data = new byte[(int) fileSizeExceedingDefaultLimit];
337337
for(int j=0; j < data.length; j++) {
338-
data[i] = (byte) (j % 256);
338+
data[j] = (byte) (j % 256);
339339
}
340340
final InputStream largeObjectStream = new ByteArrayInputStream(data);
341341
v3ClientWithBuffer32MiB.putObject(PutObjectRequest.builder()
@@ -392,7 +392,7 @@ public void customSetBufferSizeWithLargeObjectAsyncClient() throws IOException {
392392
final long fileSizeExceedingDefaultLimit = 1024 * 1024 * 32 + 1;
393393
byte[] data = new byte[(int) fileSizeExceedingDefaultLimit];
394394
for(int j=0; j < data.length; j++) {
395-
data[i] = (byte) (j % 256);
395+
data[j] = (byte) (j % 256);
396396
}
397397
final InputStream largeObjectStream = new ByteArrayInputStream(data);
398398
ExecutorService singleThreadExecutor = Executors.newSingleThreadExecutor();

0 commit comments

Comments
 (0)