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
This commit is contained in:
parent
3655efcedb
commit
992c0645e0
|
@ -58,7 +58,7 @@ class CSVLexer extends Lexer {
|
|||
boolean eol = isEndOfLine(c);
|
||||
|
||||
// empty line detection: eol AND (last char was EOL or beginning)
|
||||
if (emptyLinesIgnored) {
|
||||
if (ignoreEmptyLines) {
|
||||
while (eol && isStartOfLine(lastChar)) {
|
||||
// go on char ahead ...
|
||||
lastChar = c;
|
||||
|
|
|
@ -38,7 +38,7 @@ abstract class Lexer {
|
|||
private final Character commmentStart;
|
||||
|
||||
final boolean ignoreSurroundingSpaces;
|
||||
final boolean emptyLinesIgnored;
|
||||
final boolean ignoreEmptyLines;
|
||||
|
||||
final CSVFormat format;
|
||||
|
||||
|
@ -53,7 +53,7 @@ abstract class Lexer {
|
|||
this.encapsulator = format.getEncapsulator();
|
||||
this.commmentStart = format.getCommentStart();
|
||||
this.ignoreSurroundingSpaces = format.getIgnoreSurroundingSpaces();
|
||||
this.emptyLinesIgnored = format.getIgnoreEmptyLines();
|
||||
this.ignoreEmptyLines = format.getIgnoreEmptyLines();
|
||||
}
|
||||
|
||||
int getLineNumber() {
|
||||
|
|
|
@ -64,7 +64,7 @@ class CSVLexer1306663 extends Lexer {
|
|||
c = in.readAgain();
|
||||
|
||||
// empty line detection: eol AND (last char was EOL or beginning)
|
||||
if (emptyLinesIgnored) {
|
||||
if (ignoreEmptyLines) {
|
||||
while (eol && isStartOfLine(lastChar)) {
|
||||
// go on char ahead ...
|
||||
lastChar = c;
|
||||
|
|
|
@ -58,7 +58,7 @@ class CSVLexer1306667 extends Lexer {
|
|||
c = in.readAgain();
|
||||
|
||||
// empty line detection: eol AND (last char was EOL or beginning)
|
||||
if (emptyLinesIgnored) {
|
||||
if (ignoreEmptyLines) {
|
||||
while (eol && isStartOfLine(lastChar)) {
|
||||
// go on char ahead ...
|
||||
lastChar = c;
|
||||
|
|
Loading…
Reference in New Issue