You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by se...@apache.org on 2005/11/13 21:14:52 UTC

svn commit: r333108 - in /jakarta/jmeter/branches/rel-2-1/src: core/org/apache/jmeter/engine/util/CompoundVariable.java junit/org/apache/jmeter/protocol/java/sampler/JUnitSampler.java protocol/jms/org/apache/jmeter/protocol/jms/client/ClientPool.java

Author: sebb
Date: Sun Nov 13 12:14:41 2005
New Revision: 333108

URL: http://svn.apache.org/viewcvs?rev=333108&view=rev
Log:
Remove unnecessary casts

Modified:
    jakarta/jmeter/branches/rel-2-1/src/core/org/apache/jmeter/engine/util/CompoundVariable.java
    jakarta/jmeter/branches/rel-2-1/src/junit/org/apache/jmeter/protocol/java/sampler/JUnitSampler.java
    jakarta/jmeter/branches/rel-2-1/src/protocol/jms/org/apache/jmeter/protocol/jms/client/ClientPool.java

Modified: jakarta/jmeter/branches/rel-2-1/src/core/org/apache/jmeter/engine/util/CompoundVariable.java
URL: http://svn.apache.org/viewcvs/jakarta/jmeter/branches/rel-2-1/src/core/org/apache/jmeter/engine/util/CompoundVariable.java?rev=333108&r1=333107&r2=333108&view=diff
==============================================================================
--- jakarta/jmeter/branches/rel-2-1/src/core/org/apache/jmeter/engine/util/CompoundVariable.java (original)
+++ jakarta/jmeter/branches/rel-2-1/src/core/org/apache/jmeter/engine/util/CompoundVariable.java Sun Nov 13 12:14:41 2005
@@ -178,7 +178,7 @@
 	static Object getNamedFunction(String functionName) throws InvalidVariableException {
 		if (functions.containsKey(functionName)) {
 			try {
-				return (Function) ((Class) functions.get(functionName)).newInstance();
+				return ((Class) functions.get(functionName)).newInstance();
 			} catch (Exception e) {
 				log.error("", e);
 				throw new InvalidVariableException();

Modified: jakarta/jmeter/branches/rel-2-1/src/junit/org/apache/jmeter/protocol/java/sampler/JUnitSampler.java
URL: http://svn.apache.org/viewcvs/jakarta/jmeter/branches/rel-2-1/src/junit/org/apache/jmeter/protocol/java/sampler/JUnitSampler.java?rev=333108&r1=333107&r2=333108&view=diff
==============================================================================
--- jakarta/jmeter/branches/rel-2-1/src/junit/org/apache/jmeter/protocol/java/sampler/JUnitSampler.java (original)
+++ jakarta/jmeter/branches/rel-2-1/src/junit/org/apache/jmeter/protocol/java/sampler/JUnitSampler.java Sun Nov 13 12:14:41 2005
@@ -455,9 +455,9 @@
                     // if the string constructor is null, we use the empty
                     // constructor to get a new instance
                     if (strCon != null) {
-                        testclass = (TestCase)strCon.newInstance(strParams);
+                        testclass = strCon.newInstance(strParams);
                     } else if (con != null){
-                        testclass = (TestCase)con.newInstance(params);
+                        testclass = con.newInstance(params);
                     }
                 } catch (InvocationTargetException e) {
                     log.warn(e.getMessage());

Modified: jakarta/jmeter/branches/rel-2-1/src/protocol/jms/org/apache/jmeter/protocol/jms/client/ClientPool.java
URL: http://svn.apache.org/viewcvs/jakarta/jmeter/branches/rel-2-1/src/protocol/jms/org/apache/jmeter/protocol/jms/client/ClientPool.java?rev=333108&r1=333107&r2=333108&view=diff
==============================================================================
--- jakarta/jmeter/branches/rel-2-1/src/protocol/jms/org/apache/jmeter/protocol/jms/client/ClientPool.java (original)
+++ jakarta/jmeter/branches/rel-2-1/src/protocol/jms/org/apache/jmeter/protocol/jms/client/ClientPool.java Sun Nov 13 12:14:41 2005
@@ -108,6 +108,6 @@
 	}
 
 	public static Object get(Object key) {
-		return (OnMessageSubscriber) client_map.get(key);
+		return client_map.get(key);
 	}
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org