Author: fschumacher
Date: Mon Feb 12 12:40:51 2018
New Revision: 1823957

URL: http://svn.apache.org/viewvc?rev=1823957&view=rev
Log:
No need to explicitly create an array for the arguments.

This is the last part of the Checkstyle pull requests #358, #365, #366 and #375.
It closes #366 and #358 on github.

Based on contribution by Graham Russell (graham at ham1.co.uk) 

Modified:
    
jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/render/MapMessageRenderer.java
    jmeter/trunk/xdocs/changes.xml

Modified: 
jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/render/MapMessageRenderer.java
URL: 
http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/render/MapMessageRenderer.java?rev=1823957&r1=1823956&r2=1823957&view=diff
==============================================================================
--- 
jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/render/MapMessageRenderer.java
 (original)
+++ 
jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/render/MapMessageRenderer.java
 Mon Feb 12 12:40:51 2018
@@ -52,8 +52,8 @@ public class MapMessageRenderer implemen
                 obj = value;
             } else {
                 try {
-                    Class <?> clazz = Class.forName(type);
-                    Method method = clazz.getMethod("valueOf", new 
Class<?>[]{String.class});
+                    Class<?> clazz = Class.forName(type);
+                    Method method = clazz.getMethod("valueOf", String.class);
                     obj = method.invoke(clazz, value);
                 } catch (ClassNotFoundException | NoSuchMethodException | 
SecurityException | IllegalAccessException
                         | IllegalArgumentException | InvocationTargetException 
e) {

Modified: jmeter/trunk/xdocs/changes.xml
URL: 
http://svn.apache.org/viewvc/jmeter/trunk/xdocs/changes.xml?rev=1823957&r1=1823956&r2=1823957&view=diff
==============================================================================
--- jmeter/trunk/xdocs/changes.xml [utf-8] (original)
+++ jmeter/trunk/xdocs/changes.xml [utf-8] Mon Feb 12 12:40:51 2018
@@ -118,7 +118,7 @@ Summary
 
 <ch_section>Non-functional changes</ch_section>
 <ul>
-    <li><pr>358</pr><pr>365</pr><pr>375</pr>Updated to latest checkstyle 
(v8.8). Expanded Checkstyle to files
+    <li><pr>358</pr><pr>365</pr><pr>366</pr><pr>375</pr>Updated to latest 
checkstyle (v8.8). Expanded Checkstyle to files
       in <code>src</code> and <code>test</code>; fixed newly checked files. 
Based on contribution
       by Graham Russell (graham at ham1.co.uk)</li>
     <li><bug>62095</bug>Correct description for right boundary parameter in 
Boundary Extractor. Contributed by orimarko (orimarko at gmail.com)</li>


Reply via email to