commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1461302 - /commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/PerformanceTest.java
Date Tue, 26 Mar 2013 20:46:11 GMT
Author: ggregory
Date: Tue Mar 26 20:46:11 2013
New Revision: 1461302

URL: http://svn.apache.org/r1461302
Log:
Minor clean ups.

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

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=1461302&r1=1461301&r2=1461302&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 Tue
Mar 26 20:46:11 2013
@@ -226,9 +226,8 @@ public class PerformanceTest {
 
    private static Constructor<Lexer> getLexerCtor(final String clazz) throws Exception
{
        @SuppressWarnings("unchecked")
-       final Class<Lexer> lexer = (Class<Lexer>) Class.forName("org.apache.commons.csv."+clazz);
-       final Constructor<Lexer> ctor = lexer.getConstructor(new Class<?>[]{CSVFormat.class,
ExtendedBufferedReader.class});
-       return ctor;
+       final Class<Lexer> lexer = (Class<Lexer>) Class.forName("org.apache.commons.csv."
+ clazz);
+       return lexer.getConstructor(new Class<?>[]{CSVFormat.class, ExtendedBufferedReader.class});
    }
 
    private static void testCSVLexer(final boolean newToken, final String test) throws Exception
{



Mime
View raw message