Author: fschumacher
Date: Sun Dec  2 11:11:31 2018
New Revision: 1847966

URL: http://svn.apache.org/viewvc?rev=1847966&view=rev
Log:
Simplify code

Newer java versions have changed the method signatures to varargs. Use those 
varargs.
Part of #435 and Bugzilla Id: 62972

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/util/BeanShellInterpreter.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/util/BeanShellInterpreter.java
URL: 
http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/util/BeanShellInterpreter.java?rev=1847966&r1=1847965&r2=1847966&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/util/BeanShellInterpreter.java 
(original)
+++ jmeter/trunk/src/core/org/apache/jmeter/util/BeanShellInterpreter.java Sun 
Dec  2 11:11:31 2018
@@ -66,14 +66,10 @@ public class BeanShellInterpreter {
             Class<String> string = String.class;
             Class<Object> object = Object.class;
 
-            get = clazz.getMethod("get", //$NON-NLS-1$
-                    new Class[] { string });
-            eval = clazz.getMethod("eval", //$NON-NLS-1$
-                    new Class[] { string });
-            set = clazz.getMethod("set", //$NON-NLS-1$
-                    new Class[] { string, object });
-            source = clazz.getMethod("source", //$NON-NLS-1$
-                    new Class[] { string });
+            get = clazz.getMethod("get", string); //$NON-NLS-1$
+            eval = clazz.getMethod("eval", string); //$NON-NLS-1$
+            set = clazz.getMethod("set", string, object); //$NON-NLS-1$
+            source = clazz.getMethod("source", string); //$NON-NLS-1$
         } catch (ClassNotFoundException|SecurityException | 
NoSuchMethodException e) {
             log.error("Beanshell Interpreter not found", e);
         } finally {


Reply via email to