diff --git a/src/main/java/org/apache/commons/csv/Lexer.java b/src/main/java/org/apache/commons/csv/Lexer.java index 622599bb..0f7de6a1 100644 --- a/src/main/java/org/apache/commons/csv/Lexer.java +++ b/src/main/java/org/apache/commons/csv/Lexer.java @@ -105,13 +105,6 @@ abstract class Lexer { } } - /** - * @return true if the given char is a whitespace character - */ - boolean isWhitespace(final int c) { - return c != format.getDelimiter() && Character.isWhitespace((char) c); - } - /** * Greedily accepts \n, \r and \r\n This checker consumes silently the second control-character... * @@ -126,6 +119,15 @@ abstract class Lexer { return c == LF || c == CR; } + abstract Token nextToken(Token reusableToken) throws IOException; + + /** + * @return true if the given char is a whitespace character + */ + boolean isWhitespace(final int c) { + return c != format.getDelimiter() && Character.isWhitespace((char) c); + } + /** * Checks if the current character represents the start of a line: a CR, LF or is at the start of the file. * @@ -143,8 +145,6 @@ abstract class Lexer { return c == END_OF_STREAM; } - abstract Token nextToken(Token reusableToken) throws IOException; - boolean isDelimiter(final int c) { return c == delimiter; }