Author: fschumacher
Date: Mon Feb 12 17:18:13 2018
New Revision: 1824037

URL: http://svn.apache.org/viewvc?rev=1824037&view=rev
Log:
No need to cast here.

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

Modified: 
jmeter/trunk/src/core/org/apache/jmeter/engine/util/CompoundVariable.java
URL: 
http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/engine/util/CompoundVariable.java?rev=1824037&r1=1824036&r2=1824037&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/engine/util/CompoundVariable.java 
(original)
+++ jmeter/trunk/src/core/org/apache/jmeter/engine/util/CompoundVariable.java 
Mon Feb 12 17:18:13 2018
@@ -195,7 +195,7 @@ public class CompoundVariable implements
     static Object getNamedFunction(String functionName) throws 
InvalidVariableException {
         if (functions.containsKey(functionName)) {
             try {
-                return ((Class<?>) functions.get(functionName)).newInstance();
+                return functions.get(functionName).newInstance();
             } catch (Exception e) {
                 log.error("Exception occurred while instantiating a function: 
{}", functionName, e); // $NON-NLS-1$
                 throw new InvalidVariableException(e);


Reply via email to