Skip to content

Commit 992c064

Browse files
committed
Rename ivar to ignoreEmptyLines to match CSVFormat.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1397785 13f79535-47bb-0310-9956-ffa450edef68
1 parent 3655efc commit 992c064

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Token nextToken(final Token token) throws IOException {
5858
boolean eol = isEndOfLine(c);
5959

6060
// empty line detection: eol AND (last char was EOL or beginning)
61-
if (emptyLinesIgnored) {
61+
if (ignoreEmptyLines) {
6262
while (eol && isStartOfLine(lastChar)) {
6363
// go on char ahead ...
6464
lastChar = c;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ abstract class Lexer {
3838
private final Character commmentStart;
3939

4040
final boolean ignoreSurroundingSpaces;
41-
final boolean emptyLinesIgnored;
41+
final boolean ignoreEmptyLines;
4242

4343
final CSVFormat format;
4444

@@ -53,7 +53,7 @@ abstract class Lexer {
5353
this.encapsulator = format.getEncapsulator();
5454
this.commmentStart = format.getCommentStart();
5555
this.ignoreSurroundingSpaces = format.getIgnoreSurroundingSpaces();
56-
this.emptyLinesIgnored = format.getIgnoreEmptyLines();
56+
this.ignoreEmptyLines = format.getIgnoreEmptyLines();
5757
}
5858

5959
int getLineNumber() {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Token nextToken(final Token tkn) throws IOException {
6464
c = in.readAgain();
6565

6666
// empty line detection: eol AND (last char was EOL or beginning)
67-
if (emptyLinesIgnored) {
67+
if (ignoreEmptyLines) {
6868
while (eol && isStartOfLine(lastChar)) {
6969
// go on char ahead ...
7070
lastChar = c;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Token nextToken(final Token tkn) throws IOException {
5858
c = in.readAgain();
5959

6060
// empty line detection: eol AND (last char was EOL or beginning)
61-
if (emptyLinesIgnored) {
61+
if (ignoreEmptyLines) {
6262
while (eol && isStartOfLine(lastChar)) {
6363
// go on char ahead ...
6464
lastChar = c;

0 commit comments

Comments
 (0)