@@ -160,7 +160,7 @@ public void testDisabledComment() throws IOException {
160160 public void testExcelPrintAllArrayOfArrays () throws IOException {
161161 final StringWriter sw = new StringWriter ();
162162 final CSVPrinter printer = new CSVPrinter (sw , CSVFormat .EXCEL );
163- printer .printRecords (new String [][] { { "r1c1" , "r1c2" }, { "r2c1" , "r2c2" } });
163+ printer .printRecords (( Object []) new String [][] { { "r1c1" , "r1c2" }, { "r2c1" , "r2c2" } });
164164 assertEquals ("r1c1,r1c2" + recordSeparator + "r2c1,r2c2" + recordSeparator , sw .toString ());
165165 printer .close ();
166166 }
@@ -169,7 +169,7 @@ public void testExcelPrintAllArrayOfArrays() throws IOException {
169169 public void testExcelPrintAllArrayOfLists () throws IOException {
170170 final StringWriter sw = new StringWriter ();
171171 final CSVPrinter printer = new CSVPrinter (sw , CSVFormat .EXCEL );
172- printer .printRecords (new List [] { Arrays .asList ("r1c1" , "r1c2" ), Arrays .asList ("r2c1" , "r2c2" ) });
172+ printer .printRecords (( Object ) new List [] { Arrays .asList ("r1c1" , "r1c2" ), Arrays .asList ("r2c1" , "r2c2" ) });
173173 assertEquals ("r1c1,r1c2" + recordSeparator + "r2c1,r2c2" + recordSeparator , sw .toString ());
174174 printer .close ();
175175 }
0 commit comments