Skip to content

Commit 05e2f77

Browse files
committed
Remove trailing white spaces on all lines.
1 parent f5a1968 commit 05e2f77

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ public static CSVParser parse(final URL url, final Charset charset, final CSVFor
287287
private final Lexer lexer;
288288

289289
private final CSVRecordIterator csvRecordIterator;
290-
290+
291291
/** A record buffer for getRecord(). Grows as necessary and is reused. */
292292
private final List<String> recordList = new ArrayList<>();
293293

@@ -524,10 +524,10 @@ public boolean isClosed() {
524524
public Iterator<CSVRecord> iterator() {
525525
return csvRecordIterator;
526526
}
527-
527+
528528
class CSVRecordIterator implements Iterator<CSVRecord> {
529529
private CSVRecord current;
530-
530+
531531
private CSVRecord getNextRecord() {
532532
try {
533533
return CSVParser.this.nextRecord();
@@ -536,7 +536,7 @@ private CSVRecord getNextRecord() {
536536
e.getClass().getSimpleName() + " reading next record: " + e.toString(), e);
537537
}
538538
}
539-
539+
540540
@Override
541541
public boolean hasNext() {
542542
if (CSVParser.this.isClosed()) {
@@ -545,29 +545,29 @@ public boolean hasNext() {
545545
if (this.current == null) {
546546
this.current = this.getNextRecord();
547547
}
548-
548+
549549
return this.current != null;
550550
}
551-
551+
552552
@Override
553553
public CSVRecord next() {
554554
if (CSVParser.this.isClosed()) {
555555
throw new NoSuchElementException("CSVParser has been closed");
556556
}
557557
CSVRecord next = this.current;
558558
this.current = null;
559-
559+
560560
if (next == null) {
561561
// hasNext() wasn't called before
562562
next = this.getNextRecord();
563563
if (next == null) {
564564
throw new NoSuchElementException("No more CSV records available");
565565
}
566566
}
567-
567+
568568
return next;
569569
}
570-
570+
571571
@Override
572572
public void remove() {
573573
throw new UnsupportedOperationException();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ public void testIteratorSequenceBreaking() throws IOException {
11031103
assertEquals(String.valueOf(recordNumber), record.get(0));
11041104
}
11051105
}
1106-
1106+
11071107
private void validateLineNumbers(final String lineSeparator) throws IOException {
11081108
try (final CSVParser parser = CSVParser.parse("a" + lineSeparator + "b" + lineSeparator + "c",
11091109
CSVFormat.DEFAULT.withRecordSeparator(lineSeparator))) {

0 commit comments

Comments
 (0)