@@ -76,23 +76,23 @@ public void testAsConsumer() {
7676 public void testForAllArrayOf1 () throws IOException {
7777 IOConsumer .forAll (TestUtils .throwingIOConsumer (), (String []) null );
7878 IOConsumer .forAll (null , (String []) null );
79- assertThrows (IOExceptionList .class , () -> IOConsumer .forAll (TestUtils .throwingIOConsumer (), new String [] { "1" } ));
79+ assertThrows (IOExceptionList .class , () -> IOConsumer .forAll (TestUtils .throwingIOConsumer (), "1" ));
8080 //
8181 final AtomicReference <String > ref = new AtomicReference <>("0" );
8282 final IOConsumer <String > consumer1 = s -> ref .set (ref .get () + s );
83- IOConsumer .forAll (consumer1 , new String [] { "1" } );
83+ IOConsumer .forAll (consumer1 , "1" );
8484 assertEquals ("01" , ref .get ());
8585 }
8686
8787 @ Test
8888 public void testForAllArrayOf2 () throws IOException {
8989 IOConsumer .forAll (TestUtils .throwingIOConsumer (), (String []) null );
9090 IOConsumer .forAll (null , (String []) null );
91- assertThrows (IOExceptionList .class , () -> IOConsumer .forAll (TestUtils .throwingIOConsumer (), new String [] { "1" , "2" } ));
91+ assertThrows (IOExceptionList .class , () -> IOConsumer .forAll (TestUtils .throwingIOConsumer (), "1" , "2" ));
9292 //
9393 final AtomicReference <String > ref = new AtomicReference <>("0" );
9494 final IOConsumer <String > consumer1 = s -> ref .set (ref .get () + s );
95- IOConsumer .forAll (consumer1 , new String [] { "1" , "2" } );
95+ IOConsumer .forAll (consumer1 , "1" , "2" );
9696 assertEquals ("012" , ref .get ());
9797 }
9898
0 commit comments