@@ -421,7 +421,7 @@ void testByteArrayWithNegativeSize() {
421421
422422 @ ParameterizedTest
423423 @ MethodSource
424- void testCheckFromIndexSizeInvalidCases (int off , int len , int arrayLength ) {
424+ void testCheckFromIndexSizeInvalidCases (final int off , final int len , final int arrayLength ) {
425425 final IndexOutOfBoundsException ex = assertThrows (IndexOutOfBoundsException .class , () -> IOUtils .checkFromIndexSize (off , len , arrayLength ));
426426 assertTrue (ex .getMessage ().contains (String .valueOf (off )));
427427 assertTrue (ex .getMessage ().contains (String .valueOf (len )));
@@ -431,7 +431,7 @@ void testCheckFromIndexSizeInvalidCases(int off, int len, int arrayLength) {
431431 final IndexOutOfBoundsException jreEx = assertThrows (IndexOutOfBoundsException .class , () -> {
432432 try {
433433 Objects .class .getDeclaredMethod ("checkFromIndexSize" , int .class , int .class , int .class ).invoke (null , off , len , arrayLength );
434- } catch (InvocationTargetException ite ) {
434+ } catch (final InvocationTargetException ite ) {
435435 throw ite .getTargetException ();
436436 }
437437 });
@@ -441,13 +441,13 @@ void testCheckFromIndexSizeInvalidCases(int off, int len, int arrayLength) {
441441
442442 @ ParameterizedTest
443443 @ MethodSource
444- void testCheckFromIndexSizeValidCases (int off , int len , int arrayLength ) {
444+ void testCheckFromIndexSizeValidCases (final int off , final int len , final int arrayLength ) {
445445 assertDoesNotThrow (() -> IOUtils .checkFromIndexSize (off , len , arrayLength ));
446446 }
447447
448448 @ ParameterizedTest
449449 @ MethodSource
450- void testCheckFromToIndexInvalidCases (int from , int to , int arrayLength ) {
450+ void testCheckFromToIndexInvalidCases (final int from , final int to , final int arrayLength ) {
451451 final IndexOutOfBoundsException ex = assertThrows (IndexOutOfBoundsException .class , () -> IOUtils .checkFromToIndex (from , to , arrayLength ));
452452 assertTrue (ex .getMessage ().contains (String .valueOf (from )));
453453 assertTrue (ex .getMessage ().contains (String .valueOf (to )));
@@ -457,7 +457,7 @@ void testCheckFromToIndexInvalidCases(int from, int to, int arrayLength) {
457457 final IndexOutOfBoundsException jreEx = assertThrows (IndexOutOfBoundsException .class , () -> {
458458 try {
459459 Objects .class .getDeclaredMethod ("checkFromToIndex" , int .class , int .class , int .class ).invoke (null , from , to , arrayLength );
460- } catch (InvocationTargetException ite ) {
460+ } catch (final InvocationTargetException ite ) {
461461 throw ite .getTargetException ();
462462 }
463463 });
@@ -467,7 +467,7 @@ void testCheckFromToIndexInvalidCases(int from, int to, int arrayLength) {
467467
468468 @ ParameterizedTest
469469 @ MethodSource
470- void testCheckFromToIndexValidCases (int from , int to , int arrayLength ) {
470+ void testCheckFromToIndexValidCases (final int from , final int to , final int arrayLength ) {
471471 assertDoesNotThrow (() -> IOUtils .checkFromToIndex (from , to , arrayLength ));
472472 }
473473
@@ -1168,7 +1168,8 @@ void testCopyLarge_SkipWithInvalidOffset() throws IOException {
11681168
11691169 @ ParameterizedTest
11701170 @ MethodSource ("invalidRead_InputStream_Offset_ArgumentsProvider" )
1171- void testRead_InputStream_Offset_ArgumentsValidation (InputStream input , byte [] b , int off , int len , Class <? extends Throwable > expected ) {
1171+ void testRead_InputStream_Offset_ArgumentsValidation (final InputStream input , final byte [] b , final int off , final int len ,
1172+ final Class <? extends Throwable > expected ) {
11721173 assertThrows (expected , () -> IOUtils .read (input , b , off , len ));
11731174 }
11741175
@@ -1223,7 +1224,8 @@ void testReadFully_InputStream_Offset() throws Exception {
12231224
12241225 @ ParameterizedTest
12251226 @ MethodSource ("invalidRead_InputStream_Offset_ArgumentsProvider" )
1226- void testReadFully_InputStream_Offset_ArgumentsValidation (InputStream input , byte [] b , int off , int len , Class <? extends Throwable > expected ) {
1227+ void testReadFully_InputStream_Offset_ArgumentsValidation (final InputStream input , final byte [] b , final int off , final int len ,
1228+ final Class <? extends Throwable > expected ) {
12271229 assertThrows (expected , () -> IOUtils .read (input , b , off , len ));
12281230 }
12291231
0 commit comments