Skip to content

Commit 2ea171f

Browse files
committed
Remove extra parens.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1397071 13f79535-47bb-0310-9956-ffa450edef68
1 parent fccccfd commit 2ea171f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ void trimTrailingSpaces(StringBuilder buffer) {
9595
* @return true if the given char is a whitespace character
9696
*/
9797
boolean isWhitespace(int c) {
98-
return (c != format.getDelimiter()) && Character.isWhitespace((char) c);
98+
return c != format.getDelimiter() && Character.isWhitespace((char) c);
9999
}
100100

101101
/**
@@ -109,7 +109,7 @@ boolean isEndOfLine(int c) throws IOException {
109109
// note: does not change c outside of this method !!
110110
c = in.read();
111111
}
112-
return (c == '\n' || c == '\r');
112+
return c == '\n' || c == '\r';
113113
}
114114

115115
/**

src/test/java/org/apache/commons/csv/PerformanceTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ private static void show(){
127127
for(int i=1; i < num; i++) { // skip first test
128128
tot += elapsedTimes[i];
129129
}
130-
System.out.printf("%-20s: %5dms%n%n", "Average(not first)", (tot/(num-1)));
130+
System.out.printf("%-20s: %5dms%n%n", "Average(not first)", tot/(num-1));
131131
}
132132
num=0; // ready for next set
133133
}

0 commit comments

Comments
 (0)