Skip to content

Commit ffb7054

Browse files
committed
PMD: Remove useless parentheses
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1742468 13f79535-47bb-0310-9956-ffa450edef68
1 parent 4e8c781 commit ffb7054

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/org/apache/commons/csv/ExtendedBufferedReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ final class ExtendedBufferedReader extends BufferedReader {
5858
@Override
5959
public int read() throws IOException {
6060
final int current = super.read();
61-
if (current == CR || (current == LF && lastChar != CR)) {
61+
if (current == CR || current == LF && lastChar != CR) {
6262
eolCounter++;
6363
}
6464
lastChar = current;

src/main/java/org/apache/commons/csv/Lexer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Token nextToken(final Token token) throws IOException {
110110
}
111111

112112
// did we reach eof during the last iteration already ? EOF
113-
if (isEndOfFile(lastChar) || (!isDelimiter(lastChar) && isEndOfFile(c))) {
113+
if (isEndOfFile(lastChar) || !isDelimiter(lastChar) && isEndOfFile(c)) {
114114
token.type = EOF;
115115
// don't set token.isReady here because no content
116116
return token;

0 commit comments

Comments
 (0)