You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2022/10/29 15:51:53 UTC
[commons-csv] 03/04: Fix compiler warning
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-csv.git
commit 50f4525614f5fb492a826be303f7bb8c23f3161b
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Oct 25 21:44:23 2022 -0400
Fix compiler warning
---
src/test/java/org/apache/commons/csv/issues/JiraCsv211Test.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/test/java/org/apache/commons/csv/issues/JiraCsv211Test.java b/src/test/java/org/apache/commons/csv/issues/JiraCsv211Test.java
index 86d15935..126e85e5 100644
--- a/src/test/java/org/apache/commons/csv/issues/JiraCsv211Test.java
+++ b/src/test/java/org/apache/commons/csv/issues/JiraCsv211Test.java
@@ -29,15 +29,13 @@ public class JiraCsv211Test {
@Test
public void testJiraCsv211Format() throws IOException {
- final String[] values = {"1", "Jane Doe", "USA", ""};
-
// @formatter:off
final CSVFormat printFormat = CSVFormat.DEFAULT.builder()
.setDelimiter('\t')
.setHeader("ID", "Name", "Country", "Age")
.build();
// @formatter:on
- final String formatted = printFormat.format(values);
+ final String formatted = printFormat.format("1", "Jane Doe", "USA", "");
assertEquals("ID\tName\tCountry\tAge\r\n1\tJane Doe\tUSA\t", formatted);
final CSVFormat parseFormat = CSVFormat.DEFAULT.builder().setDelimiter('\t').setHeader().setSkipHeaderRecord(true).build();