File tree Expand file tree Collapse file tree
src/test/java/software/amazon/encryption/s3 Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments