mirror of
https://github.com/apache/commons-csv.git
synced 2025-02-17 15:35:46 +00:00
Better lvar name.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1461307 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
78d7055f71
commit
4c530ac40d
@ -251,9 +251,9 @@ public class CSVParser implements Iterable<CSVRecord> {
|
|||||||
String[] header = null;
|
String[] header = null;
|
||||||
if (format.getHeader().length == 0) {
|
if (format.getHeader().length == 0) {
|
||||||
// read the header from the first line of the file
|
// read the header from the first line of the file
|
||||||
final CSVRecord rec = nextRecord();
|
final CSVRecord record = nextRecord();
|
||||||
if (rec != null) {
|
if (record != null) {
|
||||||
header = rec.values();
|
header = record.values();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
header = format.getHeader();
|
header = format.getHeader();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user