Skip to content

Commit 259812e

Browse files
committed
Better ivar name.
1 parent 431f823 commit 259812e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ public static CSVParser parse(final URL url, final Charset charset, final CSVFor
286286
private final Lexer lexer;
287287

288288
/** A record buffer for getRecord(). Grows as necessary and is reused. */
289-
private final List<String> record = new ArrayList<>();
289+
private final List<String> recordList = new ArrayList<>();
290290

291291
/**
292292
* The next record number to assign.
@@ -364,7 +364,7 @@ private void addRecordValue(final boolean lastRecord) {
364364
return;
365365
}
366366
final String nullString = this.format.getNullString();
367-
this.record.add(inputClean.equals(nullString) ? null : inputClean);
367+
this.recordList.add(inputClean.equals(nullString) ? null : inputClean);
368368
}
369369

370370
/**
@@ -577,7 +577,7 @@ public void remove() {
577577
*/
578578
CSVRecord nextRecord() throws IOException {
579579
CSVRecord result = null;
580-
this.record.clear();
580+
this.recordList.clear();
581581
StringBuilder sb = null;
582582
final long startCharPosition = lexer.getCharacterPosition() + this.characterOffset;
583583
do {
@@ -611,10 +611,10 @@ CSVRecord nextRecord() throws IOException {
611611
}
612612
} while (this.reusableToken.type == TOKEN);
613613

614-
if (!this.record.isEmpty()) {
614+
if (!this.recordList.isEmpty()) {
615615
this.recordNumber++;
616616
final String comment = sb == null ? null : sb.toString();
617-
result = new CSVRecord(this.record.toArray(new String[this.record.size()]), this.headerMap, comment,
617+
result = new CSVRecord(this.recordList.toArray(new String[this.recordList.size()]), this.headerMap, comment,
618618
this.recordNumber, startCharPosition);
619619
}
620620
return result;

0 commit comments

Comments
 (0)