Skip to content

Commit e2221de

Browse files
committed
Fix compiler warnings.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1620893 13f79535-47bb-0310-9956-ffa450edef68
1 parent 7399265 commit e2221de

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/test/java/org/apache/commons/csv/CSVPrinterTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)