org.apache.commons.csv.Token.reset() does not need to return itself. Save a return.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1397906 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2012-10-13 17:24:27 +00:00
parent aa4d069a7f
commit 17c26354df
2 changed files with 3 additions and 3 deletions

View File

@ -55,11 +55,10 @@ class Token {
/** Token ready flag: indicates a valid token with content (ready for the parser). */
boolean isReady;
Token reset() {
void reset() {
content.setLength(0);
type = INVALID;
isReady = false;
return this;
}
// Provide toString method for IDE debugging

View File

@ -97,7 +97,8 @@ class CSVLexer1 extends Lexer {
if (c == format.getCommentStart()) {
// ignore everything till end of line and continue (incr linecount)
in.readLine();
tkn = nextToken(tkn.reset());
tkn.reset();
tkn = nextToken(tkn);
} else if (c == format.getDelimiter()) {
// empty token return TOKEN("")
tkn.type = TOKEN;