From 6b67a34b87e59e72bffd7e3b9dff31c07aa4bb65 Mon Sep 17 00:00:00 2001 From: Benedikt Ritter Date: Sun, 24 Mar 2013 13:14:21 +0000 Subject: [PATCH] Sort methods git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1460348 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/commons/csv/Lexer.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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; }