Skip to content

Commit b30da44

Browse files
committed
It's not a line, it's a record
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1300665 13f79535-47bb-0310-9956-ffa450edef68
1 parent eb6ffbb commit b30da44

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
@@ -183,7 +183,7 @@ public Iterator<String[]> iterator() {
183183

184184
public boolean hasNext() {
185185
if (current == null) {
186-
current = getNextLine();
186+
current = getNextRecord();
187187
}
188188

189189
return current != null;
@@ -195,7 +195,7 @@ public String[] next() {
195195

196196
if (next == null) {
197197
// hasNext() wasn't called before
198-
next = getNextLine();
198+
next = getNextRecord();
199199
if (next == null) {
200200
throw new NoSuchElementException("No more CSV records available");
201201
}
@@ -204,7 +204,7 @@ public String[] next() {
204204
return next;
205205
}
206206

207-
private String[] getNextLine() {
207+
private String[] getNextRecord() {
208208
try {
209209
return getRecord();
210210
} catch (IOException e) {

0 commit comments

Comments
 (0)