diff --git a/src/main/java/org/apache/commons/csv/Lexer.java b/src/main/java/org/apache/commons/csv/Lexer.java index 31743b53..34cd7d9e 100644 --- a/src/main/java/org/apache/commons/csv/Lexer.java +++ b/src/main/java/org/apache/commons/csv/Lexer.java @@ -95,7 +95,7 @@ abstract class Lexer { * @return true if the given char is a whitespace character */ boolean isWhitespace(int c) { - return (c != format.getDelimiter()) && Character.isWhitespace((char) c); + return c != format.getDelimiter() && Character.isWhitespace((char) c); } /** @@ -109,7 +109,7 @@ abstract class Lexer { // note: does not change c outside of this method !! c = in.read(); } - return (c == '\n' || c == '\r'); + return c == '\n' || c == '\r'; } /** diff --git a/src/test/java/org/apache/commons/csv/PerformanceTest.java b/src/test/java/org/apache/commons/csv/PerformanceTest.java index 49b6b575..5b9ac6e6 100644 --- a/src/test/java/org/apache/commons/csv/PerformanceTest.java +++ b/src/test/java/org/apache/commons/csv/PerformanceTest.java @@ -127,7 +127,7 @@ public class PerformanceTest { for(int i=1; i < num; i++) { // skip first test tot += elapsedTimes[i]; } - System.out.printf("%-20s: %5dms%n%n", "Average(not first)", (tot/(num-1))); + System.out.printf("%-20s: %5dms%n%n", "Average(not first)", tot/(num-1)); } num=0; // ready for next set }