Author: sebb
Date: Wed Mar 28 23:35:09 2012
New Revision: 1306643
URL: http://svn.apache.org/viewvc?rev=1306643&view=rev
Log:
Misplaced comment
Modified:
commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVLexer.java
Modified: commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVLexer.java
URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVLexer.java?rev=1306643&r1=1306642&r2=1306643&view=diff
==============================================================================
--- commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVLexer.java (original)
+++ commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVLexer.java Wed Mar 28
23:35:09 2012
@@ -44,10 +44,6 @@ class CSVLexer extends Lexer {
int lastChar = in.readAgain();
// read the next char and set eol
- /* note: unfortunately isEndOfLine may consumes a character silently.
- * this has no effect outside of the method. so a simple workaround
- * is to call 'readAgain' on the stream...
- */
int c = in.read();
if (isStartOfLine(lastChar) && isCommentStart(c)) {
@@ -56,6 +52,10 @@ class CSVLexer extends Lexer {
return tkn;
}
+ /* note: unfortunately isEndOfLine may consumes a character silently.
+ * this has no effect outside of the method. so a simple workaround
+ * is to call 'readAgain' on the stream...
+ */
boolean eol = isEndOfLine(c);
c = in.readAgain();
|