Skip to content
This repository was archived by the owner on Jun 3, 2026. It is now read-only.

Commit 82ca035

Browse files
committed
Add @SInCE annotation to javadoc
Also reworded some documentation text to read better
1 parent 0414d1e commit 82ca035

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ public List<String> getHeaderNames() {
602602
return Collections.unmodifiableList(headers.headerNames);
603603
}
604604
/**
605-
* Checks whether this parser has a header comment, false otherwise.
605+
* Checks whether there is a header comment.
606606
* The header comment appears before the header record.
607607
* Note that if the parser's format has been given an explicit header
608608
* (with {@link CSVFormat.Builder#setHeader(String... )} or another overload)
@@ -611,35 +611,39 @@ public List<String> getHeaderNames() {
611611
* will be associated with the first record, not the header.
612612
*
613613
* @return true if this parser has seen a header comment, false otherwise
614+
* @since 1.10.0
614615
*/
615616
public boolean hasHeaderComment() {
616617
return headerComment != null;
617618
}
618619
/**
619-
* Returns the header comment for this parser, if any.
620+
* Returns the header comment, if any.
620621
* The header comment appears before the header record.
621622
*
622623
* @return the header comment for this stream, or null if no comment is available.
624+
* @since 1.10.0
623625
*/
624626
public String getHeaderComment() {
625627
return headerComment;
626628
}
627629
/**
628-
* Checks whether this parser has seen a trailer comment, false otherwise.
630+
* Checks whether there is a trailer comment.
629631
* Trailer comments are located between the last record and EOF.
630632
* The trailer comments will only be available after the parser has
631633
* finished processing this stream.
632634
*
633635
* @return true if this parser has seen a trailer comment, false otherwise
636+
* @since 1.10.0
634637
*/
635638
public boolean hasTrailerComment() {
636639
return trailerComment != null;
637640
}
638641
/**
639-
* Returns the trailer comment for this record, if any.
642+
* Returns the trailer comment, if any.
640643
* Trailer comments are located between the last record and EOF
641644
*
642645
* @return the trailer comment for this stream, or null if no comment is available.
646+
* @since 1.10.0
643647
*/
644648
public String getTrailerComment() {
645649
return trailerComment;

0 commit comments

Comments
 (0)