Make checkstyle happy
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1617066 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
af2c045d83
commit
a6a92598de
|
@ -236,8 +236,8 @@ public final class CSVFormat implements Serializable {
|
|||
* Default MySQL format used by the {@code SELECT INTO OUTFILE} and {@code LOAD DATA INFILE} operations.
|
||||
*
|
||||
* <p>
|
||||
* This is a tab-delimited format with a LF character as the line separator. Values are not quoted and special characters
|
||||
* are escaped with '\'.
|
||||
* This is a tab-delimited format with a LF character as the line separator. Values are not quoted and special
|
||||
* characters are escaped with '\'.
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
|
@ -958,8 +958,8 @@ public final class CSVFormat implements Serializable {
|
|||
/**
|
||||
* Sets the record separator of the format to the specified character.
|
||||
*
|
||||
* <p><strong>Note:</strong> This setting is only used during printing and does not affect parsing. Parsing currently
|
||||
* only works for inputs with '\n', '\r' and "\r\n"</p>
|
||||
* <p><strong>Note:</strong> This setting is only used during printing and does not affect parsing. Parsing
|
||||
* currently only works for inputs with '\n', '\r' and "\r\n"</p>
|
||||
*
|
||||
* @param recordSeparator
|
||||
* the record separator to use for output.
|
||||
|
@ -973,8 +973,8 @@ public final class CSVFormat implements Serializable {
|
|||
/**
|
||||
* Sets the record separator of the format to the specified String.
|
||||
*
|
||||
* <p><strong>Note:</strong> This setting is only used during printing and does not affect parsing. Parsing currently
|
||||
* only works for inputs with '\n', '\r' and "\r\n"</p>
|
||||
* <p><strong>Note:</strong> This setting is only used during printing and does not affect parsing. Parsing
|
||||
* currently only works for inputs with '\n', '\r' and "\r\n"</p>
|
||||
*
|
||||
* @param recordSeparator
|
||||
* the record separator to use for output.
|
||||
|
|
|
@ -324,7 +324,6 @@ public final class CSVParser implements Iterable<CSVRecord>, Closeable {
|
|||
*/
|
||||
public List<CSVRecord> getRecords() throws IOException {
|
||||
CSVRecord rec;
|
||||
// can not use Java 7 diamond notation here, since JavaNCSS will fail, see https://jira.codehaus.org/browse/JAVANCSS-51
|
||||
List<CSVRecord> records = new ArrayList<CSVRecord>();
|
||||
while ((rec = this.nextRecord()) != null) {
|
||||
records.add(rec);
|
||||
|
@ -364,7 +363,8 @@ public final class CSVParser implements Iterable<CSVRecord>, Closeable {
|
|||
final String header = headerRecord[i];
|
||||
final boolean containsHeader = hdrMap.containsKey(header);
|
||||
final boolean emptyHeader = header == null || header.trim().isEmpty();
|
||||
if (containsHeader && (!emptyHeader || (emptyHeader && !this.format.getAllowMissingColumnNames()))) {
|
||||
if (containsHeader &&
|
||||
(!emptyHeader || (emptyHeader && !this.format.getAllowMissingColumnNames()))) {
|
||||
throw new IllegalArgumentException("The header contains a duplicate name: \"" + header +
|
||||
"\" in " + Arrays.toString(headerRecord));
|
||||
}
|
||||
|
|
|
@ -427,8 +427,8 @@ public final class CSVPrinter implements Flushable, Closeable {
|
|||
* Prints all the objects in the given array handling nested collections/arrays as records.
|
||||
*
|
||||
* <p>If the given array only contains simple objects, this method will print a single record like
|
||||
* {@link #printRecord(Object...)}. If the given collections contains nested collections/arrays those nested elements
|
||||
* will each be printed as records using {@link #printRecord(Object...)}.</p>
|
||||
* {@link #printRecord(Object...)}. If the given collections contains nested collections/arrays those nested
|
||||
* elements will each be printed as records using {@link #printRecord(Object...)}.</p>
|
||||
*
|
||||
* <p>Given the following data structure:</p>
|
||||
* <pre>
|
||||
|
|
|
@ -129,7 +129,7 @@ public final class CSVRecord implements Serializable, Iterable<String> {
|
|||
* </p>
|
||||
*
|
||||
* @return the number of this record.
|
||||
* @see CSVParser#getCurrentLineNumber()
|
||||
* @see CSVParser#getCurrentLineNumber()
|
||||
*/
|
||||
public long getRecordNumber() {
|
||||
return recordNumber;
|
||||
|
|
Loading…
Reference in New Issue