You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by fs...@apache.org on 2021/02/21 10:12:56 UTC

[jmeter] branch master updated: Don't init variable with a value that is never used

This is an automated email from the ASF dual-hosted git repository.

fschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git


The following commit(s) were added to refs/heads/master by this push:
     new ed20f5a  Don't init variable with a value that is never used
ed20f5a is described below

commit ed20f5a5598304360527dc1c206000ce7bf53ee3
Author: Felix Schumacher <fe...@internetallee.de>
AuthorDate: Sun Feb 21 11:12:33 2021 +0100

    Don't init variable with a value that is never used
---
 .../java/org/apache/jmeter/protocol/http/control/DNSCacheManager.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/control/DNSCacheManager.java b/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/control/DNSCacheManager.java
index 08c53d5..1e5e2da 100644
--- a/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/control/DNSCacheManager.java
+++ b/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/control/DNSCacheManager.java
@@ -241,7 +241,7 @@ public class DNSCacheManager extends ConfigTestElement implements TestIterationL
      * @return array of {@link InetAddress} or null if lookup did not return result
      */
     private InetAddress[] requestLookup(String host) throws UnknownHostException {
-        InetAddress[] addresses = null;
+        InetAddress[] addresses;
 
         if (isCustomResolver()) {
             ExtendedResolver extendedResolver = getOrCreateResolver();