File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
utils/src/test/java/software/amazon/awssdk/utils/io Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -293,15 +293,15 @@ public void skip_thenReadByteUntilEof_doesNotThrowLengthMismatch() throws IOExce
293293 LengthAwareInputStream is = new LengthAwareInputStream (delegate , delegateLength );
294294
295295 int bytesToSkip = 8 ;
296- int skippedBytes = 0 ;
296+ long skippedBytes = 0 ;
297297 while (skippedBytes != bytesToSkip ) {
298298 long skipped = is .skip (1 );
299299 if (skipped > 0 ) {
300300 skippedBytes += skipped ;
301301 }
302302 }
303303
304- int totalRead = 0 ;
304+ long totalRead = 0 ;
305305 while (is .read () != -1 ) {
306306 ++totalRead ;
307307 }
@@ -318,15 +318,15 @@ public void skip_thenReadArrayUntilEof_doesNotThrowLengthMismatch() throws IOExc
318318 LengthAwareInputStream is = new LengthAwareInputStream (delegate , delegateLength );
319319
320320 int bytesToSkip = 8 ;
321- int skippedBytes = 0 ;
321+ long skippedBytes = 0 ;
322322 while (skippedBytes != bytesToSkip ) {
323323 long skipped = is .skip (1 );
324324 if (skipped > 0 ) {
325325 skippedBytes += skipped ;
326326 }
327327 }
328328
329- int totalRead = 0 ;
329+ long totalRead = 0 ;
330330 byte [] buff = new byte [8 ];
331331 int read ;
332332
You can’t perform that action at this time.
0 commit comments