Skip to content

Commit a6a9259

Browse files
committed
Make checkstyle happy
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1617066 13f79535-47bb-0310-9956-ffa450edef68
1 parent af2c045 commit a6a9259

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ public final class CSVFormat implements Serializable {
236236
* Default MySQL format used by the {@code SELECT INTO OUTFILE} and {@code LOAD DATA INFILE} operations.
237237
*
238238
* <p>
239-
* This is a tab-delimited format with a LF character as the line separator. Values are not quoted and special characters
240-
* are escaped with '\'.
239+
* This is a tab-delimited format with a LF character as the line separator. Values are not quoted and special
240+
* characters are escaped with '\'.
241241
* </p>
242242
*
243243
* <p>
@@ -958,8 +958,8 @@ public CSVFormat withQuoteMode(final QuoteMode quoteModePolicy) {
958958
/**
959959
* Sets the record separator of the format to the specified character.
960960
*
961-
* <p><strong>Note:</strong> This setting is only used during printing and does not affect parsing. Parsing currently
962-
* only works for inputs with '\n', '\r' and "\r\n"</p>
961+
* <p><strong>Note:</strong> This setting is only used during printing and does not affect parsing. Parsing
962+
* currently only works for inputs with '\n', '\r' and "\r\n"</p>
963963
*
964964
* @param recordSeparator
965965
* the record separator to use for output.
@@ -973,8 +973,8 @@ public CSVFormat withRecordSeparator(final char recordSeparator) {
973973
/**
974974
* Sets the record separator of the format to the specified String.
975975
*
976-
* <p><strong>Note:</strong> This setting is only used during printing and does not affect parsing. Parsing currently
977-
* only works for inputs with '\n', '\r' and "\r\n"</p>
976+
* <p><strong>Note:</strong> This setting is only used during printing and does not affect parsing. Parsing
977+
* currently only works for inputs with '\n', '\r' and "\r\n"</p>
978978
*
979979
* @param recordSeparator
980980
* the record separator to use for output.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,6 @@ public long getRecordNumber() {
324324
*/
325325
public List<CSVRecord> getRecords() throws IOException {
326326
CSVRecord rec;
327-
// can not use Java 7 diamond notation here, since JavaNCSS will fail, see https://jira.codehaus.org/browse/JAVANCSS-51
328327
List<CSVRecord> records = new ArrayList<CSVRecord>();
329328
while ((rec = this.nextRecord()) != null) {
330329
records.add(rec);
@@ -364,7 +363,8 @@ private Map<String, Integer> initializeHeader() throws IOException {
364363
final String header = headerRecord[i];
365364
final boolean containsHeader = hdrMap.containsKey(header);
366365
final boolean emptyHeader = header == null || header.trim().isEmpty();
367-
if (containsHeader && (!emptyHeader || (emptyHeader && !this.format.getAllowMissingColumnNames()))) {
366+
if (containsHeader &&
367+
(!emptyHeader || (emptyHeader && !this.format.getAllowMissingColumnNames()))) {
368368
throw new IllegalArgumentException("The header contains a duplicate name: \"" + header +
369369
"\" in " + Arrays.toString(headerRecord));
370370
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,8 +427,8 @@ public void printRecords(final Iterable<?> values) throws IOException {
427427
* Prints all the objects in the given array handling nested collections/arrays as records.
428428
*
429429
* <p>If the given array only contains simple objects, this method will print a single record like
430-
* {@link #printRecord(Object...)}. If the given collections contains nested collections/arrays those nested elements
431-
* will each be printed as records using {@link #printRecord(Object...)}.</p>
430+
* {@link #printRecord(Object...)}. If the given collections contains nested collections/arrays those nested
431+
* elements will each be printed as records using {@link #printRecord(Object...)}.</p>
432432
*
433433
* <p>Given the following data structure:</p>
434434
* <pre>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public String getComment() {
129129
* </p>
130130
*
131131
* @return the number of this record.
132-
* @see CSVParser#getCurrentLineNumber()
132+
* @see CSVParser#getCurrentLineNumber()
133133
*/
134134
public long getRecordNumber() {
135135
return recordNumber;

0 commit comments

Comments
 (0)