DarrenJAN commented on code in PR #502:
URL: https://github.com/apache/commons-csv/pull/502#discussion_r1849032691
##########
src/main/java/org/apache/commons/csv/CSVRecord.java:
##########
@@ -48,6 +48,11 @@ public final class CSVRecord implements Serializable,
Iterable<String> {
*/
private final long characterPosition;
+ /**
+ * The start byte of this record as a character byte in the source stream.
Review Comment:
We are calculating the number of bytes required to encode a single character
and storing this value as a `long`. This choice provides a larger range for the
position and ensures consistency with the design, as position is also defined
as a `long`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]