Skip to content

Commit 374cd7b

Browse files
committed
Remove trailing white spaces
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1458683 13f79535-47bb-0310-9956-ffa450edef68
1 parent dca481f commit 374cd7b

9 files changed

Lines changed: 30 additions & 30 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public class CSVFormat implements Serializable {
129129
*
130130
* @param delimiter
131131
* the char used for value separation, must not be a line break character
132-
* @return a new CSV format builder.
132+
* @return a new CSV format builder.
133133
* @throws IllegalArgumentException if the delimiter is a line break character
134134
*/
135135
public static CSVFormatBuilder newBuilder(final char delimiter) {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
import java.io.IOException;
2727

2828
/**
29-
*
30-
*
29+
*
30+
*
3131
* @version $Id$
3232
*/
3333
final class CSVLexer extends Lexer {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
* <p>
6666
* see <a href="package-summary.html">package documentation</a> for more details
6767
* </p>
68-
*
68+
*
6969
* @version $Id$
7070
*/
7171
public class CSVParser implements Iterable<CSVRecord> {

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
/**
3333
* Prints values in a CSV format.
34-
*
34+
*
3535
* @version $Id$
3636
*/
3737
public class CSVPrinter implements Flushable, Closeable {
@@ -48,7 +48,7 @@ public class CSVPrinter implements Flushable, Closeable {
4848
* <p/>
4949
* Currently, only a pure encapsulation format or a pure escaping format is supported. Hybrid formats
5050
* (encapsulation and escaping with a different character) are not supported.
51-
*
51+
*
5252
* @param out
5353
* stream to which to print.
5454
* @param format
@@ -75,7 +75,7 @@ public void println() throws IOException {
7575

7676
/**
7777
* Flushes the underlying stream.
78-
*
78+
*
7979
* @throws IOException
8080
*/
8181
public void flush() throws IOException {
@@ -87,7 +87,7 @@ public void flush() throws IOException {
8787
/**
8888
* Prints a single line of delimiter separated values. The values will be quoted if needed. Quotes and newLine
8989
* characters will be escaped.
90-
*
90+
*
9191
* @param values
9292
* values to output.
9393
*/
@@ -101,7 +101,7 @@ public void printRecord(final Object... values) throws IOException {
101101
/**
102102
* Prints a single line of delimiter separated values. The values will be quoted if needed. Quotes and newLine
103103
* characters will be escaped.
104-
*
104+
*
105105
* @param values
106106
* values to output.
107107
*/
@@ -118,7 +118,7 @@ public void printRecord(final Iterable<?> values) throws IOException {
118118
* beginning of each new line in the comment.
119119
* <p/>
120120
* If comments are disabled in the current CSV format this method does nothing.
121-
*
121+
*
122122
* @param comment
123123
* the comment to output
124124
*/
@@ -297,7 +297,7 @@ void printAndQuote(final Object object, final CharSequence value, final int offs
297297
out.append(value, start, end);
298298
return;
299299
}
300-
300+
301301
// we hit something that needed encapsulation
302302
out.append(quoteChar);
303303

@@ -324,7 +324,7 @@ void printAndQuote(final Object object, final CharSequence value, final int offs
324324

325325
/**
326326
* Prints the string as the next value on the line. The value will be escaped or encapsulated as needed.
327-
*
327+
*
328328
* @param value
329329
* value to be output.
330330
* @throws IOException
@@ -338,7 +338,7 @@ public void print(final Object value) throws IOException {
338338

339339
/**
340340
* Prints all the objects in the given array.
341-
*
341+
*
342342
* @param values
343343
* the values to print.
344344
* @throws IOException
@@ -358,7 +358,7 @@ public void printRecords(final Object[] values) throws IOException {
358358

359359
/**
360360
* Prints all the objects in the given collection.
361-
*
361+
*
362362
* @param values
363363
* the values to print.
364364
* @throws IOException
@@ -378,7 +378,7 @@ public void printRecords(final Iterable<?> values) throws IOException {
378378

379379
/**
380380
* Prints all the objects in the given JDBC result set.
381-
*
381+
*
382382
* @param resultSet result set
383383
* the values to print.
384384
* @throws IOException

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
/**
2626
* A CSV record
27-
*
27+
*
2828
* @version $Id$
2929
*/
3030
public class CSVRecord implements Serializable, Iterable<String> {
@@ -41,7 +41,7 @@ public class CSVRecord implements Serializable, Iterable<String> {
4141

4242
/** The accumulated comments (if any) */
4343
private final String comment;
44-
44+
4545
/** The record number. */
4646
private final long recordNumber;
4747

@@ -81,26 +81,26 @@ public String get(final String name) {
8181

8282
/**
8383
* Checks whether a given column is mapped.
84-
*
84+
*
8585
* @param name
8686
* the name of the column to be retrieved.
8787
* @return whether a given columns is mapped.
8888
*/
8989
public boolean isMapped(final String name) {
9090
return mapping != null ? mapping.containsKey(name) : false;
9191
}
92-
92+
9393
/**
9494
* Checks whether a given columns is mapped and has a value.
95-
*
95+
*
9696
* @param name
9797
* the name of the column to be retrieved.
9898
* @return whether a given columns is mapped.
9999
*/
100100
public boolean isSet(final String name) {
101101
return isMapped(name) && mapping.get(name).intValue() < values.length;
102102
}
103-
103+
104104
public Iterator<String> iterator() {
105105
return Arrays.asList(values).iterator();
106106
}

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@
1919

2020
/**
2121
* Constants for this package.
22-
*
22+
*
2323
* @version $Id$
2424
*/
2525
final class Constants {
26-
26+
2727
static final char BACKSPACE = '\b';
2828
static final char COMMA = ',';
29-
29+
3030
/**
3131
* Starts a comment, the remainder of the line is the comment.
3232
*/
3333
static final char COMMENT = '#';
34-
34+
3535
static final char CR = '\r';
3636
static final Character DOUBLE_QUOTE_CHAR = Character.valueOf('"');
3737
static final char BACKSLASH = '\\';
@@ -40,13 +40,13 @@ final class Constants {
4040
static final char SP = ' ';
4141
static final char TAB = '\t';
4242
static final String EMPTY = "";
43-
43+
4444
/** The end of stream symbol */
4545
static final int END_OF_STREAM = -1;
4646

4747
/** Undefined state for the lookahead char */
4848
static final int UNDEFINED = -2;
49-
49+
5050
/** According to RFC 4180, line breaks are delimited by CRLF */
5151
static final String CRLF = "\r\n";
5252

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* <p>
3232
* In particular the reader supports a look-ahead option, which allows you to see the next char returned by
3333
* {@link #read()}.
34-
*
34+
*
3535
* @version $Id$
3636
*/
3737
final class ExtendedBufferedReader extends BufferedReader {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
/**
3131
* Abstract lexer class; contains common utility routines shared by lexers
32-
*
32+
*
3333
* @version $Id$
3434
*/
3535
abstract class Lexer {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Internal token representation.
2424
* <p/>
2525
* It is used as contract between the lexer and the parser.
26-
*
26+
*
2727
* @version $Id$
2828
*/
2929
final class Token {

0 commit comments

Comments
 (0)