Skip to content
This repository was archived by the owner on Jan 8, 2020. It is now read-only.

Commit ffdfffb

Browse files
committed
TRailing spaces
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1582822 13f79535-47bb-0310-9956-ffa450edef68
1 parent 7bba60a commit ffdfffb

7 files changed

Lines changed: 14 additions & 14 deletions

File tree

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ CSV files of various types.
127127
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
128128
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
129129
<commons.encoding>UTF-8</commons.encoding>
130-
<!--
130+
<!--
131131
Use 2.9.1 instead of 2.10; 2.10 seems to scan the 'target' dir
132-
and wants license headers in .properties to be the header for Java files.
132+
and wants license headers in .properties to be the header for Java files.
133133
-->
134134
<checkstyle.version>2.12</checkstyle.version>
135135
<checkstyle.header.file>${basedir}/LICENSE-header.txt</checkstyle.header.file>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
* </p>
5555
* <p>
5656
* Alternatively parsers can also be created by passing a {@link Reader} directly to the sole constructor.
57-
*
57+
*
5858
* For those who like fluent APIs, parsers can be created using {@link CSVFormat#parse(java.io.Reader)} as a shortcut:
5959
* </p>
6060
* <pre>
@@ -319,7 +319,7 @@ public List<CSVRecord> getRecords() throws IOException {
319319

320320
/**
321321
* Initializes the name to index mapping if the format defines a header.
322-
*
322+
*
323323
* @return null if the format has no header.
324324
*/
325325
private Map<String, Integer> initializeHeader() throws IOException {

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -422,9 +422,9 @@ public void printRecords(final ResultSet resultSet) throws SQLException, IOExcep
422422
}
423423

424424
/**
425-
* Gets the target Appendable.
426-
*
427-
* @return the target Appendable.
425+
* Gets the target Appendable.
426+
*
427+
* @return the target Appendable.
428428
*/
429429
public Appendable getOut() {
430430
return this.out;

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public Iterator<String> iterator() {
172172

173173
/**
174174
* Puts all values of this record into the given Map.
175-
*
175+
*
176176
* @param map The Map to populate.
177177
* @return the given map.
178178
*/
@@ -194,7 +194,7 @@ public int size() {
194194

195195
/**
196196
* Converts the values to a List.
197-
*
197+
*
198198
* TODO: Maybe make this public?
199199
* @return a new List
200200
*/
@@ -204,7 +204,7 @@ private List<String> toList() {
204204

205205
/**
206206
* Copies this record into a new Map. The new map is not connect
207-
*
207+
*
208208
* @return A new Map. The map is empty if the record has no headers.
209209
*/
210210
public Map<String, String> toMap() {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ final class Constants {
3939
static final char LF = '\n';
4040
static final char SP = ' ';
4141
static final char TAB = '\t';
42-
42+
4343
/** ASCII record separator */
4444
static final char RS = 30;
4545

4646
/** ASCII unit separator */
4747
static final char US = 31;
48-
48+
4949
static final String EMPTY = "";
5050

5151
/** The end of stream symbol */

src/test/java/org/apache/commons/csv/CSVFormatTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ private static CSVFormat copy(final CSVFormat format) {
5555
public void testDelimiterSameAsCommentStartThrowsException() {
5656
CSVFormat.DEFAULT.withDelimiter('!').withCommentStart('!').validate();
5757
}
58-
58+
5959
@Test(expected = IllegalStateException.class)
6060
public void testDelimiterSameAsEscapeThrowsException() {
6161
CSVFormat.DEFAULT.withDelimiter('!').withEscape('!').validate();

src/test/java/org/apache/commons/csv/CSVParserTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ public void testParseStringNullFormat() throws Exception {
757757
@Test(expected = IllegalArgumentException.class)
758758
public void testParseUrlCharsetNullFormat() throws Exception {
759759
final CSVParser parser = CSVParser.parse(new URL("http://commons.apache.org"), Charset.defaultCharset(), null);
760-
parser.close();
760+
parser.close();
761761
}
762762

763763
@Test

0 commit comments

Comments
 (0)