mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
fix sonar rule check violations
This commit is contained in:
@@ -178,12 +178,6 @@ public class Lexer {
|
||||
token = ERROR;
|
||||
}
|
||||
|
||||
/**
|
||||
* Report an error at the current token position using the provided arguments.
|
||||
*/
|
||||
private void lexError(String key, Object... args) {
|
||||
lexError(tokenPos, key, args);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the current token, set by nextToken().
|
||||
@@ -376,7 +370,7 @@ public class Lexer {
|
||||
token = EOF;
|
||||
tokenPos = bp = eofPos;
|
||||
} else {
|
||||
lexError("illegal.char", String.valueOf((int) ch));
|
||||
lexError(tokenPos, "illegal.char", String.valueOf((int) ch));
|
||||
scanChar();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user