Skip to content

Commit 20eac69

Browse files
committed
Delegate to withHeader(String[]) instead of calling the long constructor directly
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1742170 13f79535-47bb-0310-9956-ffa450edef68
1 parent 4def868 commit 20eac69

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/main/java/org/apache/commons/csv/CSVFormat.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,9 +1139,7 @@ public CSVFormat withHeader(final ResultSetMetaData metaData) throws SQLExceptio
11391139
labels[i] = metaData.getColumnLabel(i + 1);
11401140
}
11411141
}
1142-
return new CSVFormat(delimiter, quoteCharacter, quoteMode, commentMarker, escapeCharacter,
1143-
ignoreSurroundingSpaces, ignoreEmptyLines, recordSeparator, nullString, headerComments, labels,
1144-
skipHeaderRecord, allowMissingColumnNames, ignoreHeaderCase, trim, trailingDelimiter);
1142+
return withHeader(labels);
11451143
}
11461144

11471145
/**

0 commit comments

Comments
 (0)