PMD: Remove useless parentheses
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1742468 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4e8c781b23
commit
ffb70548fe
|
@ -58,7 +58,7 @@ final class ExtendedBufferedReader extends BufferedReader {
|
||||||
@Override
|
@Override
|
||||||
public int read() throws IOException {
|
public int read() throws IOException {
|
||||||
final int current = super.read();
|
final int current = super.read();
|
||||||
if (current == CR || (current == LF && lastChar != CR)) {
|
if (current == CR || current == LF && lastChar != CR) {
|
||||||
eolCounter++;
|
eolCounter++;
|
||||||
}
|
}
|
||||||
lastChar = current;
|
lastChar = current;
|
||||||
|
|
|
@ -110,7 +110,7 @@ final class Lexer implements Closeable {
|
||||||
}
|
}
|
||||||
|
|
||||||
// did we reach eof during the last iteration already ? EOF
|
// did we reach eof during the last iteration already ? EOF
|
||||||
if (isEndOfFile(lastChar) || (!isDelimiter(lastChar) && isEndOfFile(c))) {
|
if (isEndOfFile(lastChar) || !isDelimiter(lastChar) && isEndOfFile(c)) {
|
||||||
token.type = EOF;
|
token.type = EOF;
|
||||||
// don't set token.isReady here because no content
|
// don't set token.isReady here because no content
|
||||||
return token;
|
return token;
|
||||||
|
|
Loading…
Reference in New Issue