Skip to content

Commit bd17fc3

Browse files
committed
Remove trailing whitespace.
1 parent 66c34da commit bd17fc3

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ private Map<String, Integer> getHeaderMapRaw() {
151151
* Returns the parser.
152152
*
153153
* <p>Note: The parser is not part of the serialized state of the record. A null check
154-
* should be used when the record may have originated from a serialized form.
154+
* should be used when the record may have originated from a serialized form.
155155
*
156156
* @return the parser.
157157
* @since 1.7

src/site/xdoc/user-guide.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ limitations under the License.
3232

3333
Parsing files with Apache Commons CSV is relatively straight forward.
3434
The CSVFormat class provides some commonly used CSV variants:
35-
35+
3636
<dl>
3737
<dt><a href="https://commons.apache.org/proper/commons-csv/apidocs/org/apache/commons/csv/CSVFormat.html#DEFAULT">DEFAULT</a></dt><dd>Standard Comma Separated Value format, as for RFC4180 but allowing empty lines.</dd>
3838
<dt><a href="https://commons.apache.org/proper/commons-csv/apidocs/org/apache/commons/csv/CSVFormat.html#EXCEL">EXCEL</a></dt><dd>The Microsoft Excel CSV format.</dd>

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public int read(final Blackhole bh) throws Exception {
7979
while ((line = in.readLine()) != null) {
8080
count++;
8181
}
82-
82+
8383
bh.consume(count);
8484
in.close();
8585
return count;
@@ -94,7 +94,7 @@ public int split(final Blackhole bh) throws Exception {
9494
final String[] values = StringUtils.split(line, ',');
9595
count += values.length;
9696
}
97-
97+
9898
bh.consume(count);
9999
in.close();
100100
return count;
@@ -103,7 +103,7 @@ public int split(final Blackhole bh) throws Exception {
103103
@Benchmark
104104
public int parseCommonsCSV(final Blackhole bh) throws Exception {
105105
final BufferedReader in = getReader();
106-
106+
107107
final CSVFormat format = CSVFormat.DEFAULT.withHeader();
108108

109109
int count = 0;
@@ -119,7 +119,7 @@ public int parseCommonsCSV(final Blackhole bh) throws Exception {
119119
@Benchmark
120120
public int parseGenJavaCSV(final Blackhole bh) throws Exception {
121121
final BufferedReader in = getReader();
122-
122+
123123
final CsvReader reader = new CsvReader(in);
124124
reader.setFieldDelimiter(',');
125125

@@ -137,7 +137,7 @@ public int parseGenJavaCSV(final Blackhole bh) throws Exception {
137137
@Benchmark
138138
public int parseJavaCSV(final Blackhole bh) throws Exception {
139139
final BufferedReader in = getReader();
140-
140+
141141
final com.csvreader.CsvReader reader = new com.csvreader.CsvReader(in, ',');
142142
reader.setRecordDelimiter('\n');
143143

@@ -154,7 +154,7 @@ public int parseJavaCSV(final Blackhole bh) throws Exception {
154154
@Benchmark
155155
public int parseOpenCSV(final Blackhole bh) throws Exception {
156156
final BufferedReader in = getReader();
157-
157+
158158
final com.opencsv.CSVReader reader = new com.opencsv.CSVReader(in, ',');
159159

160160
int count = 0;
@@ -170,10 +170,10 @@ public int parseOpenCSV(final Blackhole bh) throws Exception {
170170
@Benchmark
171171
public int parseSkifeCSV(final Blackhole bh) throws Exception {
172172
final BufferedReader in = getReader();
173-
173+
174174
final org.skife.csv.CSVReader reader = new org.skife.csv.SimpleReader();
175175
reader.setSeperator(',');
176-
176+
177177
final CountingReaderCallback callback = new CountingReaderCallback();
178178
reader.parse(in, callback);
179179

@@ -194,7 +194,7 @@ public void onRow(final String[] fields) {
194194
@Benchmark
195195
public int parseSuperCSV(final Blackhole bh) throws Exception {
196196
final BufferedReader in = getReader();
197-
197+
198198
final CsvListReader reader = new CsvListReader(in, CsvPreference.STANDARD_PREFERENCE);
199199

200200
int count = 0;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ record = parser.iterator().next();
6363
headerMap = parser.getHeaderMap();
6464
}
6565
}
66-
66+
6767
@Test
6868
public void testGetInt() {
6969
assertEquals(values[0], record.get(0));

0 commit comments

Comments
 (0)