Skip to content

Commit 6a91c05

Browse files
committed
CSV-84 Clarify comment handling
Document how comment behaves git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306316 13f79535-47bb-0310-9956-ffa450edef68
1 parent f299569 commit 6a91c05

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,9 @@ public char getCommentStart() {
264264
/**
265265
* Returns a copy of this format using the specified character as the comment start marker.
266266
*
267+
* Note that the comment introducer character is only recognised
268+
* at the start of a line.
269+
*
267270
* @param commentStart the comment start marker
268271
* @return A copy of this format using the specified character as the comment start marker
269272
* @throws IllegalArgumentException thrown if the specified character is a line break
@@ -279,6 +282,9 @@ public CSVFormat withCommentStart(char commentStart) {
279282
/**
280283
* Specifies whether comments are supported by this format.
281284
*
285+
* Note that the comment introducer character is only recognised
286+
* at the start of a line.
287+
*
282288
* @return <tt>true</tt> is comments are supported, <tt>false</tt> otherwise
283289
*/
284290
public boolean isCommentingEnabled() {

0 commit comments

Comments
 (0)