Skip to content

Commit e6ba150

Browse files
committed
Use isDelimiter method instead of != check.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1478655 13f79535-47bb-0310-9956-ffa450edef68
1 parent 2c61208 commit e6ba150

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ boolean readEndOfLine(int c) throws IOException {
146146
* @return true if the given char is a whitespace character
147147
*/
148148
boolean isWhitespace(final int c) {
149-
return c != format.getDelimiter() && Character.isWhitespace((char) c);
149+
return !isDelimiter(c) && Character.isWhitespace((char) c);
150150
}
151151

152152
/**

0 commit comments

Comments
 (0)