@@ -166,28 +166,28 @@ public void testEqualsHash() throws Exception {
166166 for (final Class <?> cls : method .getParameterTypes ()) {
167167 final String type = cls .getCanonicalName ();
168168 if ("boolean" .equals (type )) {
169- final Object defTrue = method .invoke (CSVFormat .DEFAULT , new Object [] { Boolean .TRUE } );
170- final Object defFalse = method .invoke (CSVFormat .DEFAULT , new Object [] { Boolean .FALSE } );
169+ final Object defTrue = method .invoke (CSVFormat .DEFAULT , Boolean .TRUE );
170+ final Object defFalse = method .invoke (CSVFormat .DEFAULT , Boolean .FALSE );
171171 assertNotEquals (name , type ,defTrue , defFalse );
172172 } else if ("char" .equals (type )){
173- final Object a = method .invoke (CSVFormat .DEFAULT , new Object [] { 'a' } );
174- final Object b = method .invoke (CSVFormat .DEFAULT , new Object [] { 'b' } );
173+ final Object a = method .invoke (CSVFormat .DEFAULT , 'a' );
174+ final Object b = method .invoke (CSVFormat .DEFAULT , 'b' );
175175 assertNotEquals (name , type , a , b );
176176 } else if ("java.lang.Character" .equals (type )){
177177 final Object a = method .invoke (CSVFormat .DEFAULT , new Object [] {null });
178- final Object b = method .invoke (CSVFormat .DEFAULT , new Object [] { new Character ('d' )} );
178+ final Object b = method .invoke (CSVFormat .DEFAULT , new Character ('d' ));
179179 assertNotEquals (name , type , a , b );
180180 } else if ("java.lang.String" .equals (type )){
181181 final Object a = method .invoke (CSVFormat .DEFAULT , new Object [] {null });
182- final Object b = method .invoke (CSVFormat .DEFAULT , new Object [] { "e" } );
182+ final Object b = method .invoke (CSVFormat .DEFAULT , "e" );
183183 assertNotEquals (name , type , a , b );
184184 } else if ("java.lang.String[]" .equals (type )){
185185 final Object a = method .invoke (CSVFormat .DEFAULT , new Object [] {new String [] {null , null }});
186186 final Object b = method .invoke (CSVFormat .DEFAULT , new Object [] {new String [] {"f" , "g" }});
187187 assertNotEquals (name , type , a , b );
188188 } else if ("org.apache.commons.csv.QuoteMode" .equals (type )){
189- final Object a = method .invoke (CSVFormat .DEFAULT , new Object [] { QuoteMode .MINIMAL } );
190- final Object b = method .invoke (CSVFormat .DEFAULT , new Object [] { QuoteMode .ALL } );
189+ final Object a = method .invoke (CSVFormat .DEFAULT , QuoteMode .MINIMAL );
190+ final Object b = method .invoke (CSVFormat .DEFAULT , QuoteMode .ALL );
191191 assertNotEquals (name , type , a , b );
192192 } else if ("java.lang.Object[]" .equals (type )){
193193 final Object a = method .invoke (CSVFormat .DEFAULT , new Object [] {new Object [] {null , null }});
0 commit comments