Skip to content

Commit

Permalink
Merge pull request #328 from jkbkupczyk/add_missing_docs
Browse files Browse the repository at this point in the history
Add missing docs
  • Loading branch information
garydgregory authored Jun 24, 2023
2 parents 8f07f10 + d3ef84e commit 5723261
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
19 changes: 10 additions & 9 deletions src/main/java/org/apache/commons/csv/CSVFormat.java
Original file line number Diff line number Diff line change
Expand Up @@ -1383,12 +1383,12 @@ private CSVFormat(final Builder builder) {
* @param nullString the line separator to use for output.
* @param headerComments the comments to be printed by the Printer before the actual CSV data.
* @param header the header
* @param skipHeaderRecord TODO Doc me.
* @param allowMissingColumnNames TODO Doc me.
* @param ignoreHeaderCase TODO Doc me.
* @param trim TODO Doc me.
* @param trailingDelimiter TODO Doc me.
* @param autoFlush TODO Doc me.
* @param skipHeaderRecord if {@code true} the header row will be skipped
* @param allowMissingColumnNames if {@code true} the missing column names are allowed when parsing the header line
* @param ignoreHeaderCase if {@code true} header names will be accessed ignoring case when parsing input
* @param trim if {@code true} next record value will be trimmed
* @param trailingDelimiter if {@code true} the trailing delimiter wil be added before record separator (if set)
* @param autoFlush if {@code true} the underlying stream will be flushed before closing
* @param duplicateHeaderMode the behavior when handling duplicate headers
* @throws IllegalArgumentException if the delimiter is a line break character.
*/
Expand Down Expand Up @@ -1601,7 +1601,7 @@ public boolean getIgnoreEmptyLines() {
/**
* Gets whether header names will be accessed ignoring case when parsing input.
*
* @return {@code true} if header names cases are ignored, {@code false} if they are case sensitive.
* @return {@code true} if header names cases are ignored, {@code false} if they are case-sensitive.
* @since 1.3
*/
public boolean getIgnoreHeaderCase() {
Expand Down Expand Up @@ -1797,7 +1797,7 @@ public CSVPrinter print(final Appendable out) throws IOException {
}

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

/**
* Prints to the specified output, returns a {@code CSVPrinter} which the caller MUST close.
* Prints to the specified {@code Path} with given {@code Charset},
* returns a {@code CSVPrinter} which the caller MUST close.
*
* <p>
* See also {@link CSVPrinter}.
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/apache/commons/csv/CSVRecord.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public String get(final int i) {
}

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

/**
* Copies this record into a new Map of header name to record value. If multiple instances of a header name exists,
* only the last occurence is mapped.
* only the last occurrence is mapped.
*
* <p>
* Editing the map does not update this instance.
Expand Down

0 comments on commit 5723261

Please sign in to comment.