jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mchassagn...@apache.org
Subject svn commit: r1815936 - /jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/BackendListenerGui.java
Date Tue, 21 Nov 2017 15:27:14 GMT
Author: mchassagneux
Date: Tue Nov 21 15:27:14 2017
New Revision: 1815936

URL: http://svn.apache.org/viewvc?rev=1815936&view=rev
Log:
[Influxdb] Allow users to add theirs owns tags
Bugzilla Id: 61794
Fix Sonar bug
Bugzilla Id: 61794

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/BackendListenerGui.java

Modified: jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/BackendListenerGui.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/BackendListenerGui.java?rev=1815936&r1=1815935&r2=1815936&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/BackendListenerGui.java
(original)
+++ jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/BackendListenerGui.java
Tue Nov 21 15:27:14 2017
@@ -178,22 +178,19 @@ public class BackendListenerGui extends
                 Arguments currArgs = new Arguments();
                 argsPanel.modifyTestElement(currArgs);
                 Map<String, String> currArgsMap = currArgs.getArgumentsAsMap();
-                Arguments currentUserArgs = new Arguments();
-                
                 Map<String, String> userArgMap = new HashMap<>();
                 userArgMap.putAll(currArgsMap);
                 Arguments newArgs = new Arguments();
                 Arguments defaultArgs = null;
                 try {
                     defaultArgs = client.getDefaultParameters();    
-                    currentUserArgs = oldClient.getDefaultParameters();
+                    Arguments currentUserArgs = oldClient.getDefaultParameters();
+                    userArgMap.keySet().removeAll(currentUserArgs.getArgumentsAsMap().keySet());
                 } catch (AbstractMethodError e) {
                     log.warn("BackendListenerClient doesn't implement "
                             + "getDefaultParameters.  Default parameters won't "
                             + "be shown.  Please update your client class: {}", newClassName);
                 }
-                userArgMap.keySet().removeAll(currentUserArgs.getArgumentsAsMap().keySet()
);
-                
                 
                 if (defaultArgs != null) {
                     for (JMeterProperty jMeterProperty : defaultArgs.getArguments()) {



Mime
View raw message