Author: fschumacher
Date: Mon Feb 12 17:03:24 2018
New Revision: 1824031

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

Part of #356 on Github. Contributed by Graham Russell (graham at ham1.co.uk)

Modified:
    
jmeter/trunk/src/core/org/apache/jmeter/testelement/property/AbstractProperty.java

Modified: 
jmeter/trunk/src/core/org/apache/jmeter/testelement/property/AbstractProperty.java
URL: 
http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/testelement/property/AbstractProperty.java?rev=1824031&r1=1824030&r2=1824031&view=diff
==============================================================================
--- 
jmeter/trunk/src/core/org/apache/jmeter/testelement/property/AbstractProperty.java
 (original)
+++ 
jmeter/trunk/src/core/org/apache/jmeter/testelement/property/AbstractProperty.java
 Mon Feb 12 17:03:24 2018
@@ -318,7 +318,7 @@ public abstract class AbstractProperty i
         try {
             @SuppressWarnings("unchecked") // empty collection
             Map<String, JMeterProperty> newColl = 
coll.getClass().newInstance();
-            for (Map.Entry<?,?> entry : ((Map<?,?>)coll).entrySet()) {
+            for (Map.Entry<?,?> entry : coll.entrySet()) {
                 Object key = entry.getKey();
                 Object prop = entry.getValue();
                 String item=null;


Reply via email to