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:
parent
aa4d069a7f
commit
17c26354df
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue