@@ -294,15 +294,15 @@ public void testDefaultFormat() throws IOException {
294294
295295 @ Test (expected = IllegalArgumentException .class )
296296 public void testDuplicateHeadersNotAllowed () throws Exception {
297- CSVParser .parse ("a,b,a\n 1,2,3\n x,y,z" , CSVFormat . DEFAULT . withHeader ( new String [] {})
298- .withAllowDuplicateHeaderNames (false ));
297+ CSVParser .parse ("a,b,a\n 1,2,3\n x,y,z" ,
298+ CSVFormat . DEFAULT . withHeader ( new String [] {}) .withAllowDuplicateHeaderNames (false ));
299299 }
300300
301301 @ Test
302302 public void testDuplicateHeadersAllowedByDefault () throws Exception {
303303 CSVParser .parse ("a,b,a\n 1,2,3\n x,y,z" , CSVFormat .DEFAULT .withHeader (new String [] {}));
304304 }
305-
305+
306306 @ Test
307307 public void testEmptyFileHeaderParsing () throws Exception {
308308 try (final CSVParser parser = CSVParser .parse ("" , CSVFormat .DEFAULT .withFirstRecordAsHeader ())) {
@@ -1169,9 +1169,8 @@ public void testTrim() throws Exception {
11691169
11701170 @ Test
11711171 public void testRepeatedHeadersAreReturnedInCSVRecordHeaderNames () throws IOException {
1172- final Reader in = new StringReader ("header1,header2,header1\n 1,2,3\n 4,5,6" );
1173- final Iterator <CSVRecord > records = CSVFormat .DEFAULT .withFirstRecordAsHeader ()
1174- .withTrim ().parse (in ).iterator ();
1172+ final Reader in = new StringReader ("header1,header2,header1\n 1,2,3\n 4,5,6" );
1173+ final Iterator <CSVRecord > records = CSVFormat .DEFAULT .withFirstRecordAsHeader ().withTrim ().parse (in ).iterator ();
11751174 final CSVRecord record = records .next ();
11761175 assertEquals (Arrays .asList ("header1" , "header2" , "header1" ), record .getParser ().getHeaderNames ());
11771176 }
0 commit comments