jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1380043 - /jmeter/trunk/src/core/org/apache/jmeter/NewDriver.java
Date Sun, 02 Sep 2012 19:53:23 GMT
Author: pmouawad
Date: Sun Sep  2 19:53:23 2012
New Revision: 1380043

URL: http://svn.apache.org/viewvc?rev=1380043&view=rev
Log:
Remove useless brackets
very little optimisation toarray

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/NewDriver.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/NewDriver.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/NewDriver.java?rev=1380043&r1=1380042&r2=1380043&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/NewDriver.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/NewDriver.java Sun Sep  2 19:53:23 2012
@@ -126,7 +126,7 @@ public final class NewDriver {
         loader = AccessController.doPrivileged(
         		new java.security.PrivilegedAction<DynamicClassLoader>() {
         	        public DynamicClassLoader run() {
-        	        	return new DynamicClassLoader(jars.toArray(new URL[0]));
+        	        	return new DynamicClassLoader(jars.toArray(new URL[jars.size()]));
         	        }
         	    }
         );
@@ -212,7 +212,7 @@ public final class NewDriver {
                 initialClass = loader.loadClass("org.apache.jmeter.JMeter");// $NON-NLS-1$
             }
             Object instance = initialClass.newInstance();
-            Method startup = initialClass.getMethod("start", new Class[] { (new String[0]).getClass()
});// $NON-NLS-1$
+            Method startup = initialClass.getMethod("start", new Class[] { new String[0].getClass()
});// $NON-NLS-1$
             startup.invoke(instance, new Object[] { args });
         } catch(Throwable e){
             e.printStackTrace();



Mime
View raw message