mirror of
https://github.com/apache/commons-csv.git
synced 2025-03-01 22:39:06 +00:00
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). */
|
/** Token ready flag: indicates a valid token with content (ready for the parser). */
|
||||||
boolean isReady;
|
boolean isReady;
|
||||||
|
|
||||||
Token reset() {
|
void reset() {
|
||||||
content.setLength(0);
|
content.setLength(0);
|
||||||
type = INVALID;
|
type = INVALID;
|
||||||
isReady = false;
|
isReady = false;
|
||||||
return this;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Provide toString method for IDE debugging
|
// Provide toString method for IDE debugging
|
||||||
|
@ -97,7 +97,8 @@ class CSVLexer1 extends Lexer {
|
|||||||
if (c == format.getCommentStart()) {
|
if (c == format.getCommentStart()) {
|
||||||
// ignore everything till end of line and continue (incr linecount)
|
// ignore everything till end of line and continue (incr linecount)
|
||||||
in.readLine();
|
in.readLine();
|
||||||
tkn = nextToken(tkn.reset());
|
tkn.reset();
|
||||||
|
tkn = nextToken(tkn);
|
||||||
} else if (c == format.getDelimiter()) {
|
} else if (c == format.getDelimiter()) {
|
||||||
// empty token return TOKEN("")
|
// empty token return TOKEN("")
|
||||||
tkn.type = TOKEN;
|
tkn.type = TOKEN;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user