jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1647610 - /jmeter/trunk/src/jorphan/org/apache/jorphan/reflect/ClassTools.java
Date Tue, 23 Dec 2014 16:35:50 GMT
Author: sebb
Date: Tue Dec 23 16:35:50 2014
New Revision: 1647610

URL: http://svn.apache.org/r1647610
Log:
Explicit boxing

Modified:
    jmeter/trunk/src/jorphan/org/apache/jorphan/reflect/ClassTools.java

Modified: jmeter/trunk/src/jorphan/org/apache/jorphan/reflect/ClassTools.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/jorphan/org/apache/jorphan/reflect/ClassTools.java?rev=1647610&r1=1647609&r2=1647610&view=diff
==============================================================================
--- jmeter/trunk/src/jorphan/org/apache/jorphan/reflect/ClassTools.java (original)
+++ jmeter/trunk/src/jorphan/org/apache/jorphan/reflect/ClassTools.java Tue Dec 23 16:35:50
2014
@@ -65,7 +65,7 @@ public class ClassTools {
         try {
             Class<?> clazz = ClassUtils.getClass(className);
             Constructor<?> constructor = clazz.getConstructor(Integer.TYPE);
-            instance = constructor.newInstance(parameter);
+            instance = constructor.newInstance(Integer.valueOf(parameter));
         } catch (ClassNotFoundException e) {
             throw new JMeterException(e);
         } catch (InstantiationException e) {



Mime
View raw message