jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1782630 - /jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/DNSCacheManager.java
Date Sat, 11 Feb 2017 18:05:09 GMT
Author: fschumacher
Date: Sat Feb 11 18:05:09 2017
New Revision: 1782630

URL: http://svn.apache.org/viewvc?rev=1782630&view=rev
Log:
Rename local variable so it doesn't clash with field and use new log format string.

Modified:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/DNSCacheManager.java

Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/DNSCacheManager.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/DNSCacheManager.java?rev=1782630&r1=1782629&r2=1782630&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/DNSCacheManager.java
(original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/DNSCacheManager.java
Sat Feb 11 18:05:09 2017
@@ -126,15 +126,13 @@ public class DNSCacheManager extends Con
                 serverNames[index] = jMeterProperty.getStringValue();
                 index++;
             }
-            ExtendedResolver resolver = new ExtendedResolver(serverNames);
-            if(log.isDebugEnabled()) {
-                log.debug("Using DNS Resolvers: "
-                        + Arrays.asList(((ExtendedResolver) resolver)
-                                .getResolvers()));
+            ExtendedResolver result = new ExtendedResolver(serverNames);
+            if (log.isDebugEnabled()) {
+                log.debug("Using DNS Resolvers: {}", Arrays.asList((result).getResolvers()));
             }
             // resolvers will be chosen via round-robin
-            resolver.setLoadBalance(true);
-            return resolver;
+            result.setLoadBalance(true);
+            return result;
         } catch (UnknownHostException uhe) {
             this.initFailed = true;
             log.warn("Failed to create Extended resolver: " + uhe.getMessage());



Mime
View raw message