commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1306643 - /commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVLexer.java
Date Wed, 28 Mar 2012 23:35:09 GMT
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();
 



Mime
View raw message