jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject [jmeter] branch master updated: Don't init variable with a value that is never used
Date Sun, 21 Feb 2021 10:12:56 GMT
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 <felix.schumacher@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();


Mime
View raw message