Skip to content

Commit dd5de38

Browse files
committed
CSV-243 CSVFormat withTrim() and withIgnoreSurroundingSpaces()
need better docs
1 parent ed8602d commit dd5de38

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

src/changes/changes.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
</properties>
4040
<body>
4141
<release version="1.8" date="2019-MM-DD" description="Feature and bug fix release (Java 8)">
42+
<action issue="CSV-243" type="fix" dev="sebb">CSVFormat withTrim() and withIgnoreSurroundingSpaces() need better docs</action>
4243
<action issue="CSV-242" type="fix" dev="sebb">CSVFormat equals() and hashCode() don't use all fields</action>
4344
<action issue="CSV-241" type="fix" dev="ggregory" due-to="LuckyIlam, Gary Gregory">CSVFormat#valiadte() does not account for allowDuplicateHeaderNames #43.</action>
4445
</release>

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2092,9 +2092,9 @@ public CSVFormat withIgnoreHeaderCase(final boolean ignoreHeaderCase) {
20922092
}
20932093

20942094
/**
2095-
* Returns a new {@code CSVFormat} with the trimming behavior of the format set to {@code true}.
2095+
* Returns a new {@code CSVFormat} with the parser trimming behavior of the format set to {@code true}.
20962096
*
2097-
* @return A new CSVFormat that is equal to this but with the specified trimming behavior.
2097+
* @return A new CSVFormat that is equal to this but with the specified parser trimming behavior.
20982098
* @see #withIgnoreSurroundingSpaces(boolean)
20992099
* @since 1.1
21002100
*/
@@ -2103,10 +2103,10 @@ public CSVFormat withIgnoreSurroundingSpaces() {
21032103
}
21042104

21052105
/**
2106-
* Returns a new {@code CSVFormat} with the trimming behavior of the format set to the given value.
2106+
* Returns a new {@code CSVFormat} with the parser trimming behavior of the format set to the given value.
21072107
*
21082108
* @param ignoreSurroundingSpaces
2109-
* the trimming behavior, {@code true} to remove the surrounding spaces, {@code false} to leave the
2109+
* the parser trimming behavior, {@code true} to remove the surrounding spaces, {@code false} to leave the
21102110
* spaces as is.
21112111
* @return A new CSVFormat that is equal to this but with the specified trimming behavior.
21122112
*/
@@ -2294,7 +2294,7 @@ public CSVFormat withTrailingDelimiter(final boolean trailingDelimiter) {
22942294
}
22952295

22962296
/**
2297-
* Returns a new {@code CSVFormat} to trim leading and trailing blanks.
2297+
* Returns a new {@code CSVFormat} to trim leading and trailing blanks when printing.
22982298
*
22992299
* @return A new CSVFormat that is equal to this but with the trim setting on.
23002300
* @since 1.3
@@ -2304,10 +2304,10 @@ public CSVFormat withTrim() {
23042304
}
23052305

23062306
/**
2307-
* Returns a new {@code CSVFormat} with whether to trim leading and trailing blanks.
2307+
* Returns a new {@code CSVFormat} with whether to trim leading and trailing blanks when printing.
23082308
*
23092309
* @param trim
2310-
* whether to trim leading and trailing blanks.
2310+
* whether to trim leading and trailing blanks when printing.
23112311
*
23122312
* @return A new CSVFormat that is equal to this but with the specified trim setting.
23132313
* @since 1.3

0 commit comments

Comments
 (0)