Token.Type.isReady could perhaps be removed
-------------------------------------------

                 Key: CSV-81
                 URL: https://issues.apache.org/jira/browse/CSV-81
             Project: Commons CSV
          Issue Type: Improvement
            Reporter: Sebb


The isReady field is written in lots of places, but only read in 2 places:

1) CSVParser.getRecord() uses it to determine if there was any data found at EOF
2) CSVLexer.nextToken uses it to determine when to exit the loop, but could 
equally probably check for type == INVALID

It ought to be possible to simplify this considerably since the only usage 
external to the Lexer is to distinguish the EOF case.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to