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:
Gary D. Gregory 2013-03-26 20:52:28 +00:00
parent 78d7055f71
commit 4c530ac40d

View File

@ -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();