From 1299ddfe3fec5000f68c203a7f61e9af02955296 Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Thu, 22 Mar 2012 18:15:20 +0000 Subject: [PATCH] Oops - fix bug introduced in r1303933 git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1303948 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/java/org/apache/commons/csv/CSVLexer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/csv/CSVLexer.java b/src/main/java/org/apache/commons/csv/CSVLexer.java index 625c6bfe..f26a1ece 100644 --- a/src/main/java/org/apache/commons/csv/CSVLexer.java +++ b/src/main/java/org/apache/commons/csv/CSVLexer.java @@ -74,7 +74,7 @@ class CSVLexer extends Lexer { } // did we reach eof during the last iteration already ? EOF - if (isEndOfFile(lastChar) || (isDelimiter(lastChar) && isEndOfFile(c))) { + if (isEndOfFile(lastChar) || (!isDelimiter(lastChar) && isEndOfFile(c))) { tkn.type = EOF; return tkn; }