commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1397071 - in /commons/proper/csv/trunk/src: main/java/org/apache/commons/csv/Lexer.java test/java/org/apache/commons/csv/PerformanceTest.java
Date Thu, 11 Oct 2012 14:24:24 GMT
Author: ggregory
Date: Thu Oct 11 14:24:23 2012
New Revision: 1397071

URL: http://svn.apache.org/viewvc?rev=1397071&view=rev
Log:
Remove extra parens.

Modified:
    commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/Lexer.java
    commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/PerformanceTest.java

Modified: commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/Lexer.java
URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/Lexer.java?rev=1397071&r1=1397070&r2=1397071&view=diff
==============================================================================
--- commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/Lexer.java (original)
+++ commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/Lexer.java Thu Oct 11 14:24:23
2012
@@ -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';
     }
 
     /**

Modified: commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/PerformanceTest.java
URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/PerformanceTest.java?rev=1397071&r1=1397070&r2=1397071&view=diff
==============================================================================
--- commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/PerformanceTest.java (original)
+++ commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/PerformanceTest.java Thu
Oct 11 14:24:23 2012
@@ -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
     }



Mime
View raw message