Skip to content

Commit 4623756

Browse files
committed
Elaborate on the difference between line number and record number
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1610768 13f79535-47bb-0310-9956-ffa450edef68
1 parent 4428b57 commit 4623756

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,13 @@ public String getComment() {
123123
/**
124124
* Returns the number of this record in the parsed CSV file.
125125
*
126+
* <p>
127+
* <strong>ATTENTION:</strong> If your CSV input has multi-line values, the returned number does not correspond to
128+
* the current line number of the parser that created this record.
129+
* </p>
130+
*
126131
* @return the number of this record.
132+
* @see CSVParser#getCurrentLineNumber()
127133
*/
128134
public long getRecordNumber() {
129135
return recordNumber;

0 commit comments

Comments
 (0)