jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1769417 - /jmeter/trunk/src/core/org/apache/jmeter/util/NameUpdater.java
Date Sat, 12 Nov 2016 20:39:37 GMT
Author: pmouawad
Date: Sat Nov 12 20:39:36 2016
New Revision: 1769417

URL: http://svn.apache.org/viewvc?rev=1769417&view=rev
Log:
replace contains by containsKey

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

Modified: jmeter/trunk/src/core/org/apache/jmeter/util/NameUpdater.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/util/NameUpdater.java?rev=1769417&r1=1769416&r2=1769417&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/util/NameUpdater.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/util/NameUpdater.java Sat Nov 12 20:39:36 2016
@@ -88,7 +88,7 @@ public final class NameUpdater {
                 Enumeration<String> propertyNames = (Enumeration<String>) prop.propertyNames();
                 while (propertyNames.hasMoreElements()) {
                     String key = propertyNames.nextElement();
-                    if (!nameMap.contains(key)) {
+                    if (!nameMap.containsKey(key)) {
                        nameMap.put(key, prop.get(key));
                        log.info("Added additional nameMap entry: " + key);
                     } else {



Mime
View raw message