@@ -37,7 +37,7 @@ public void testQuoteModeAll() throws Exception {
3737
3838 final StringBuffer buffer = new StringBuffer ();
3939 try (final CSVPrinter printer = new CSVPrinter (buffer , format )) {
40- printer .printRecord (new Object [] { null , "Hello" , null , "World" } );
40+ printer .printRecord (null , "Hello" , null , "World" );
4141 }
4242 assertEquals ("\" N/A\" ,\" Hello\" ,\" N/A\" ,\" World\" \r \n " , buffer .toString ());
4343 }
@@ -51,7 +51,7 @@ public void testQuoteModeAllNonNull() throws Exception {
5151
5252 final StringBuffer buffer = new StringBuffer ();
5353 try (final CSVPrinter printer = new CSVPrinter (buffer , format )) {
54- printer .printRecord (new Object [] { null , "Hello" , null , "World" } );
54+ printer .printRecord (null , "Hello" , null , "World" );
5555 }
5656 assertEquals ("N/A,\" Hello\" ,N/A,\" World\" \r \n " , buffer .toString ());
5757 }
@@ -64,7 +64,7 @@ public void testWithoutQuoteMode() throws Exception {
6464
6565 final StringBuffer buffer = new StringBuffer ();
6666 try (final CSVPrinter printer = new CSVPrinter (buffer , format )) {
67- printer .printRecord (new Object [] { null , "Hello" , null , "World" } );
67+ printer .printRecord (null , "Hello" , null , "World" );
6868 }
6969 assertEquals ("N/A,Hello,N/A,World\r \n " , buffer .toString ());
7070 }
@@ -78,7 +78,7 @@ public void testQuoteModeMinimal() throws Exception {
7878
7979 final StringBuffer buffer = new StringBuffer ();
8080 try (final CSVPrinter printer = new CSVPrinter (buffer , format )) {
81- printer .printRecord (new Object [] { null , "Hello" , null , "World" } );
81+ printer .printRecord (null , "Hello" , null , "World" );
8282 }
8383 assertEquals ("N/A,Hello,N/A,World\r \n " , buffer .toString ());
8484 }
@@ -92,7 +92,7 @@ public void testQuoteModeNonNumeric() throws Exception {
9292
9393 final StringBuffer buffer = new StringBuffer ();
9494 try (final CSVPrinter printer = new CSVPrinter (buffer , format )) {
95- printer .printRecord (new Object [] { null , "Hello" , null , "World" } );
95+ printer .printRecord (null , "Hello" , null , "World" );
9696 }
9797 assertEquals ("N/A,\" Hello\" ,N/A,\" World\" \r \n " , buffer .toString ());
9898 }
@@ -106,7 +106,7 @@ public void testWithoutNullString() throws Exception {
106106
107107 final StringBuffer buffer = new StringBuffer ();
108108 try (final CSVPrinter printer = new CSVPrinter (buffer , format )) {
109- printer .printRecord (new Object [] { null , "Hello" , null , "World" } );
109+ printer .printRecord (null , "Hello" , null , "World" );
110110 }
111111 assertEquals (",\" Hello\" ,,\" World\" \r \n " , buffer .toString ());
112112 }
@@ -120,7 +120,7 @@ public void testWithEmptyValues() throws Exception {
120120
121121 final StringBuffer buffer = new StringBuffer ();
122122 try (final CSVPrinter printer = new CSVPrinter (buffer , format )) {
123- printer .printRecord (new Object [] { "" , "Hello" , "" , "World" } );
123+ printer .printRecord ("" , "Hello" , "" , "World" );
124124 //printer.printRecord(new Object[] { null, "Hello", null, "World" });
125125 }
126126 assertEquals ("\" \" ,\" Hello\" ,\" \" ,\" World\" \r \n " , buffer .toString ());
0 commit comments