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
This commit is contained in:
Benedikt Ritter 2016-05-03 18:24:22 +00:00
parent 4def868a8e
commit 20eac694a0

View File

@ -1139,9 +1139,7 @@ public final class CSVFormat implements Serializable {
labels[i] = metaData.getColumnLabel(i + 1);
}
}
return new CSVFormat(delimiter, quoteCharacter, quoteMode, commentMarker, escapeCharacter,
ignoreSurroundingSpaces, ignoreEmptyLines, recordSeparator, nullString, headerComments, labels,
skipHeaderRecord, allowMissingColumnNames, ignoreHeaderCase, trim, trailingDelimiter);
return withHeader(labels);
}
/**