Skip to content

Commit 50f4525

Browse files
committed
Fix compiler warning
1 parent ed43bba commit 50f4525

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/test/java/org/apache/commons/csv/issues/JiraCsv211Test.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,13 @@ public class JiraCsv211Test {
2929

3030
@Test
3131
public void testJiraCsv211Format() throws IOException {
32-
final String[] values = {"1", "Jane Doe", "USA", ""};
33-
3432
// @formatter:off
3533
final CSVFormat printFormat = CSVFormat.DEFAULT.builder()
3634
.setDelimiter('\t')
3735
.setHeader("ID", "Name", "Country", "Age")
3836
.build();
3937
// @formatter:on
40-
final String formatted = printFormat.format(values);
38+
final String formatted = printFormat.format("1", "Jane Doe", "USA", "");
4139
assertEquals("ID\tName\tCountry\tAge\r\n1\tJane Doe\tUSA\t", formatted);
4240

4341
final CSVFormat parseFormat = CSVFormat.DEFAULT.builder().setDelimiter('\t').setHeader().setSkipHeaderRecord(true).build();

0 commit comments

Comments
 (0)