You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by GitBox <gi...@apache.org> on 2022/10/06 12:11:18 UTC
[GitHub] [commons-csv] pedro-w commented on a diff in pull request #270: [CSV-274] Add comments to iterator() and stream()
pedro-w commented on code in PR #270:
URL: https://github.com/apache/commons-csv/pull/270#discussion_r988967174
##########
src/main/java/org/apache/commons/csv/CSVParser.java:
##########
@@ -734,9 +734,24 @@ private boolean isStrictQuoteMode() {
* {@link IllegalStateException}.
* </p>
* <p>
- * If the parser is closed a call to {@link Iterator#next()} will throw a
+ * If the parser is closed, the iterator will not yield any more records.
+ * A call to {@link Iterator#hasNext()} will return {@code false} and
+ * a call to {@link Iterator#next()} will throw a
* {@link NoSuchElementException}.
* </p>
+ * <p>
Review Comment:
Good point.
--
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: issues-unsubscribe@commons.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org