Skip to content

Commit 5723261

Browse files
authored
Merge pull request #328 from jkbkupczyk/add_missing_docs
Add missing docs
2 parents 8f07f10 + d3ef84e commit 5723261

2 files changed

Lines changed: 12 additions & 11 deletions

File tree

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

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1383,12 +1383,12 @@ private CSVFormat(final Builder builder) {
13831383
* @param nullString the line separator to use for output.
13841384
* @param headerComments the comments to be printed by the Printer before the actual CSV data.
13851385
* @param header the header
1386-
* @param skipHeaderRecord TODO Doc me.
1387-
* @param allowMissingColumnNames TODO Doc me.
1388-
* @param ignoreHeaderCase TODO Doc me.
1389-
* @param trim TODO Doc me.
1390-
* @param trailingDelimiter TODO Doc me.
1391-
* @param autoFlush TODO Doc me.
1386+
* @param skipHeaderRecord if {@code true} the header row will be skipped
1387+
* @param allowMissingColumnNames if {@code true} the missing column names are allowed when parsing the header line
1388+
* @param ignoreHeaderCase if {@code true} header names will be accessed ignoring case when parsing input
1389+
* @param trim if {@code true} next record value will be trimmed
1390+
* @param trailingDelimiter if {@code true} the trailing delimiter wil be added before record separator (if set)
1391+
* @param autoFlush if {@code true} the underlying stream will be flushed before closing
13921392
* @param duplicateHeaderMode the behavior when handling duplicate headers
13931393
* @throws IllegalArgumentException if the delimiter is a line break character.
13941394
*/
@@ -1601,7 +1601,7 @@ public boolean getIgnoreEmptyLines() {
16011601
/**
16021602
* Gets whether header names will be accessed ignoring case when parsing input.
16031603
*
1604-
* @return {@code true} if header names cases are ignored, {@code false} if they are case sensitive.
1604+
* @return {@code true} if header names cases are ignored, {@code false} if they are case-sensitive.
16051605
* @since 1.3
16061606
*/
16071607
public boolean getIgnoreHeaderCase() {
@@ -1797,7 +1797,7 @@ public CSVPrinter print(final Appendable out) throws IOException {
17971797
}
17981798

17991799
/**
1800-
* Prints to the specified output.
1800+
* Prints to the specified {@code File} with given {@code Charset}.
18011801
*
18021802
* <p>
18031803
* See also {@link CSVPrinter}.
@@ -1869,7 +1869,8 @@ private synchronized void print(final Object object, final CharSequence value, f
18691869
}
18701870

18711871
/**
1872-
* Prints to the specified output, returns a {@code CSVPrinter} which the caller MUST close.
1872+
* Prints to the specified {@code Path} with given {@code Charset},
1873+
* returns a {@code CSVPrinter} which the caller MUST close.
18731874
*
18741875
* <p>
18751876
* See also {@link CSVPrinter}.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public String get(final int i) {
8888
}
8989

9090
/**
91-
* Returns a value by name. If multiple instances of the header name exists, only the last occurence is returned.
91+
* Returns a value by name. If multiple instances of the header name exists, only the last occurrence is returned.
9292
*
9393
* <p>
9494
* Note: This requires a field mapping obtained from the original parser.
@@ -312,7 +312,7 @@ public List<String> toList() {
312312

313313
/**
314314
* Copies this record into a new Map of header name to record value. If multiple instances of a header name exists,
315-
* only the last occurence is mapped.
315+
* only the last occurrence is mapped.
316316
*
317317
* <p>
318318
* Editing the map does not update this instance.

0 commit comments

Comments
 (0)