Skip to content

Commit b3553ad

Browse files
committed
The local variable record is hiding a field from type CSVParser.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1558888 13f79535-47bb-0310-9956-ffa450edef68
1 parent cb5de89 commit b3553ad

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,9 +330,9 @@ private Map<String, Integer> initializeHeader() throws IOException {
330330
String[] header = null;
331331
if (formatHeader.length == 0) {
332332
// read the header from the first line of the file
333-
final CSVRecord record = this.nextRecord();
334-
if (record != null) {
335-
header = record.values();
333+
final CSVRecord nextRecord = this.nextRecord();
334+
if (nextRecord != null) {
335+
header = nextRecord.values();
336336
}
337337
} else {
338338
if (this.format.getSkipHeaderRecord()) {

0 commit comments

Comments
 (0)